public class DefaultBroadcastServiceConfiguration extends java.lang.Object implements BroadcastServiceConfiguration
DefaultBroadcastService.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CFG_MESSAGE_KEYCACHE_SIZE |
static java.lang.String |
CFG_METHOD_PREFIX |
static java.lang.String |
CFG_METHODS |
static java.lang.String |
CFG_SENDER_THREADS_DISABLE |
static java.lang.String |
CFG_SENDER_THREADS_KEEPALIVE |
static java.lang.String |
CFG_SENDER_THREADS_MAX |
static java.lang.String |
CFG_SENDER_THREADS_MAXWAIT |
static java.lang.String |
CFG_SENDER_THREADS_MIN |
static java.lang.String |
CFG_SENDER_THREADS_QUEUE_FAIRNESS |
static java.lang.String |
CFG_SENDER_THREADS_QUEUESIZE |
static java.lang.String |
CFG_SENDER_THREADS_WAITDELAY |
static java.lang.String |
CFG_START_PING_ON_TENANT_STARTUP |
static java.lang.String |
DEFAULT_METHODS |
static int |
MESSAGE_QUEUE_SIZE
The default asynchronous message sending queue size.
|
static int |
MESSAGE_QUEUE_WAIT_TIME
The time to wait before trying to put message into sender queue again.
|
static long |
MESSAGE_SENDING_TIMEOUT
the time a thread will try to place his message into message sending queue before we raise a exception.
|
static int |
MESSAGE_THREADS_KEEPALIVE
The default time before a unused message thread is removed.
|
static int |
MESSAGE_THREADS_MAX
The default max amount of message sending threads to create.
|
static int |
MESSAGE_THREADS_MIN
The default min amount of message sending threads to keep active.
|
| Constructor and Description |
|---|
DefaultBroadcastServiceConfiguration() |
public static java.lang.String CFG_METHODS
public static java.lang.String CFG_METHOD_PREFIX
public static java.lang.String CFG_SENDER_THREADS_MIN
public static java.lang.String CFG_SENDER_THREADS_MAX
public static java.lang.String CFG_SENDER_THREADS_KEEPALIVE
public static java.lang.String CFG_SENDER_THREADS_QUEUESIZE
public static java.lang.String CFG_SENDER_THREADS_QUEUE_FAIRNESS
public static java.lang.String CFG_SENDER_THREADS_MAXWAIT
public static java.lang.String CFG_SENDER_THREADS_WAITDELAY
public static java.lang.String CFG_SENDER_THREADS_DISABLE
public static java.lang.String CFG_START_PING_ON_TENANT_STARTUP
public static java.lang.String CFG_MESSAGE_KEYCACHE_SIZE
public static java.lang.String DEFAULT_METHODS
public static final long MESSAGE_SENDING_TIMEOUT
public static final int MESSAGE_QUEUE_WAIT_TIME
public static final int MESSAGE_QUEUE_SIZE
public static final int MESSAGE_THREADS_MIN
public static final int MESSAGE_THREADS_MAX
public static final int MESSAGE_THREADS_KEEPALIVE
public DefaultBroadcastServiceConfiguration()
protected java.util.Map<java.lang.String,java.lang.Class> loadMethods(ConfigIntf cfg)
public boolean enableAsynchonousSending()
enableAsynchonousSending in interface BroadcastServiceConfigurationpublic void setAsynchonousSending(boolean enabled)
public boolean enableClusterMode()
enableClusterMode in interface BroadcastServiceConfigurationpublic void setClusterMode(boolean enabled)
public int getConfiguredNodeID()
getConfiguredNodeID in interface BroadcastServiceConfigurationpublic void setConfiguredNodeID(int id)
public long getClusterIslandID()
getClusterIslandID in interface BroadcastServiceConfigurationpublic void setClusterIslandID(long id)
public long getDynamicNodeID()
getDynamicNodeID in interface BroadcastServiceConfigurationpublic void setDynamicNodeID(long id)
public int getMessageKeyCacheSize()
getMessageKeyCacheSize in interface BroadcastServiceConfigurationpublic void setMessageKeyCacheSize(int size)
public long getMessageSendingMaxWait()
getMessageSendingMaxWait in interface BroadcastServiceConfigurationpublic void setMessageSendingMaxWait(long milliseconds)
public int getMessageSendingQueueSize()
getMessageSendingQueueSize in interface BroadcastServiceConfigurationpublic void setMessageSendingQueueSize(int size)
public boolean getMessageSendingQueueFairness()
getMessageSendingQueueFairness in interface BroadcastServiceConfigurationpublic void setMessageSendingQueueFairness(boolean fair)
public int getMessageSendingWaitDelay()
getMessageSendingWaitDelay in interface BroadcastServiceConfigurationpublic void setMessageSendingWaitDelay(int milliseconds)
public java.util.Map<java.lang.String,java.lang.Class> getMethods()
getMethods in interface BroadcastServiceConfigurationpublic void setMethods(java.util.Map<java.lang.String,java.lang.Class> methodClassMap)
public int getSenderMaxThreads()
getSenderMaxThreads in interface BroadcastServiceConfigurationpublic void setSenderMaxThreads(int maxThreads)
public int getSenderMinThreads()
getSenderMinThreads in interface BroadcastServiceConfigurationpublic void setSenderMinThreads(int minThreads)
public int getSenderThreadsKeepAlive()
getSenderThreadsKeepAlive in interface BroadcastServiceConfigurationpublic void setSenderThreadsKeepAlive(int milliseconds)
public boolean startPingOnTenantStartup()
startPingOnTenantStartup in interface BroadcastServiceConfigurationCopyright © 2018 SAP SE. All Rights Reserved.