org.granite.gravity
Class GravityConfig

java.lang.Object
  extended by org.granite.gravity.GravityConfig
All Implemented Interfaces:
GraniteConfigReloadListener

public class GravityConfig
extends Object
implements GraniteConfigReloadListener

Author:
Franck WOLFF

Field Summary
static long DEFAULT_CHANNEL_IDLE_TIMEOUT_MILLIS
           
static int DEFAULT_CORE_POOL_SIZE
           
static boolean DEFAULT_ENCODE_MESSAGE_BODY
           
static String DEFAULT_GRAVITY_FACTORY
           
static long DEFAULT_KEEP_ALIVE_TIME_MILLIS
           
static long DEFAULT_LONG_POLLING_TIMEOUT_MILLIS
           
static int DEFAULT_MAX_MESSAGES_QUEUED_PER_CHANNEL
           
static int DEFAULT_MAXIMUM_POOL_SIZE
           
static int DEFAULT_QUEUE_CAPACITY
           
static long DEFAULT_RECONNECT_INTERVAL_MILLIS
           
static int DEFAULT_RECONNECT_MAX_ATTEMPTS
           
static boolean DEFAULT_RETRY_ON_ERROR
           
static int DEFAULT_UDP_SEND_BUFFER_SIZE
           
 
Constructor Summary
GravityConfig(GraniteConfig graniteConfig)
           
 
Method Summary
 long getChannelIdleTimeoutMillis()
           
 int getCorePoolSize()
           
 XMap getExtra()
           
 String getGravityFactory()
           
 long getKeepAliveTimeMillis()
           
 long getLongPollingTimeoutMillis()
           
 int getMaximumPoolSize()
           
 int getMaxMessagesQueuedPerChannel()
           
 int getQueueCapacity()
           
 long getReconnectIntervalMillis()
           
 int getReconnectMaxAttempts()
           
 int getUdpPort()
           
 int getUdpSendBufferSize()
           
 boolean isEncodeMessageBody()
           
 boolean isRetryOnError()
           
 boolean isUdpConnected()
           
 boolean isUdpNio()
           
 boolean isUseUdp()
           
 void onReload(ServletContext context, GraniteConfig config)
           
 void setChannelIdleTimeoutMillis(long channelIdleTimeoutMillis)
           
 void setCorePoolSize(int corePoolSize)
           
 void setEncodeMessageBody(boolean encodeMessageBody)
           
 void setKeepAliveTimeMillis(long keepAliveTimeMillis)
           
 void setLongPollingTimeoutMillis(long longPollingTimeoutMillis)
           
 void setMaximumPoolSize(int maximumPoolSize)
           
 void setMaxMessagesQueuedPerChannel(int maxMessagesQueuedPerChannel)
           
 void setQueueCapacity(int queueCapacity)
           
 void setReconnectIntervalMillis(long reconnectIntervalMillis)
           
 void setReconnectMaxAttempts(int reconnectMaxAttempts)
           
 void setRetryOnError(boolean retryOnError)
           
 void setUdpConnected(boolean udpConnected)
           
 void setUdpNio(boolean udpNio)
           
 void setUdpPort(int udpPort)
           
 void setUdpSendBufferSize(int udpBufferSize)
           
 void setUseUdp(boolean useUdp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_GRAVITY_FACTORY

public static final String DEFAULT_GRAVITY_FACTORY

DEFAULT_CHANNEL_IDLE_TIMEOUT_MILLIS

public static final long DEFAULT_CHANNEL_IDLE_TIMEOUT_MILLIS
See Also:
Constant Field Values

DEFAULT_LONG_POLLING_TIMEOUT_MILLIS

public static final long DEFAULT_LONG_POLLING_TIMEOUT_MILLIS
See Also:
Constant Field Values

DEFAULT_RETRY_ON_ERROR

public static final boolean DEFAULT_RETRY_ON_ERROR
See Also:
Constant Field Values

DEFAULT_MAX_MESSAGES_QUEUED_PER_CHANNEL

public static final int DEFAULT_MAX_MESSAGES_QUEUED_PER_CHANNEL
See Also:
Constant Field Values

DEFAULT_RECONNECT_INTERVAL_MILLIS

public static final long DEFAULT_RECONNECT_INTERVAL_MILLIS
See Also:
Constant Field Values

DEFAULT_RECONNECT_MAX_ATTEMPTS

public static final int DEFAULT_RECONNECT_MAX_ATTEMPTS
See Also:
Constant Field Values

DEFAULT_ENCODE_MESSAGE_BODY

public static final boolean DEFAULT_ENCODE_MESSAGE_BODY
See Also:
Constant Field Values

DEFAULT_CORE_POOL_SIZE

public static final int DEFAULT_CORE_POOL_SIZE
See Also:
Constant Field Values

DEFAULT_MAXIMUM_POOL_SIZE

public static final int DEFAULT_MAXIMUM_POOL_SIZE
See Also:
Constant Field Values

DEFAULT_KEEP_ALIVE_TIME_MILLIS

public static final long DEFAULT_KEEP_ALIVE_TIME_MILLIS
See Also:
Constant Field Values

DEFAULT_QUEUE_CAPACITY

public static final int DEFAULT_QUEUE_CAPACITY
See Also:
Constant Field Values

DEFAULT_UDP_SEND_BUFFER_SIZE

public static final int DEFAULT_UDP_SEND_BUFFER_SIZE
See Also:
Constant Field Values
Constructor Detail

GravityConfig

public GravityConfig(GraniteConfig graniteConfig)
Method Detail

onReload

public void onReload(ServletContext context,
                     GraniteConfig config)
Specified by:
onReload in interface GraniteConfigReloadListener

getGravityFactory

public String getGravityFactory()

getChannelIdleTimeoutMillis

public long getChannelIdleTimeoutMillis()

setChannelIdleTimeoutMillis

public void setChannelIdleTimeoutMillis(long channelIdleTimeoutMillis)

getLongPollingTimeoutMillis

public long getLongPollingTimeoutMillis()

setLongPollingTimeoutMillis

public void setLongPollingTimeoutMillis(long longPollingTimeoutMillis)

isRetryOnError

public boolean isRetryOnError()

setRetryOnError

public void setRetryOnError(boolean retryOnError)

getMaxMessagesQueuedPerChannel

public int getMaxMessagesQueuedPerChannel()

setMaxMessagesQueuedPerChannel

public void setMaxMessagesQueuedPerChannel(int maxMessagesQueuedPerChannel)

getReconnectIntervalMillis

public long getReconnectIntervalMillis()

setReconnectIntervalMillis

public void setReconnectIntervalMillis(long reconnectIntervalMillis)

getReconnectMaxAttempts

public int getReconnectMaxAttempts()

setReconnectMaxAttempts

public void setReconnectMaxAttempts(int reconnectMaxAttempts)

isEncodeMessageBody

public boolean isEncodeMessageBody()

setEncodeMessageBody

public void setEncodeMessageBody(boolean encodeMessageBody)

getExtra

public XMap getExtra()

getCorePoolSize

public int getCorePoolSize()

setCorePoolSize

public void setCorePoolSize(int corePoolSize)

getMaximumPoolSize

public int getMaximumPoolSize()

setMaximumPoolSize

public void setMaximumPoolSize(int maximumPoolSize)

getKeepAliveTimeMillis

public long getKeepAliveTimeMillis()

setKeepAliveTimeMillis

public void setKeepAliveTimeMillis(long keepAliveTimeMillis)

getQueueCapacity

public int getQueueCapacity()

setQueueCapacity

public void setQueueCapacity(int queueCapacity)

isUseUdp

public boolean isUseUdp()

setUseUdp

public void setUseUdp(boolean useUdp)

getUdpPort

public int getUdpPort()

setUdpPort

public void setUdpPort(int udpPort)

isUdpNio

public boolean isUdpNio()

setUdpNio

public void setUdpNio(boolean udpNio)

isUdpConnected

public boolean isUdpConnected()

setUdpConnected

public void setUdpConnected(boolean udpConnected)

getUdpSendBufferSize

public int getUdpSendBufferSize()

setUdpSendBufferSize

public void setUdpSendBufferSize(int udpBufferSize)