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 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
           
 
Constructor Summary
GravityConfig(GraniteConfig graniteConfig, ChannelFactory channelFactory)
           
 
Method Summary
 ChannelFactory getChannelFactory()
           
 long getChannelIdleTimeoutMillis()
           
 int getCorePoolSize()
           
 XMap getExtra()
           
 String getGravityFactory()
           
 long getKeepAliveTimeMillis()
           
 long getLongPollingTimeoutMillis()
           
 int getMaximumPoolSize()
           
 int getMaxMessagesQueuedPerChannel()
           
 int getQueueCapacity()
           
 long getReconnectIntervalMillis()
           
 int getReconnectMaxAttempts()
           
 boolean isRetryOnError()
           
 void onReload(ServletContext context, GraniteConfig config)
           
 void setChannelIdleTimeoutMillis(long channelIdleTimeoutMillis)
           
 void setCorePoolSize(int corePoolSize)
           
 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)
           
 
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_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
Constructor Detail

GravityConfig

public GravityConfig(GraniteConfig graniteConfig,
                     ChannelFactory channelFactory)
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)

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)

getChannelFactory

public ChannelFactory getChannelFactory()