org.granite.gravity.gae
Class GAEGravity

java.lang.Object
  extended by org.granite.gravity.DefaultGravity
      extended by org.granite.gravity.gae.GAEGravity
All Implemented Interfaces:
ShutdownListener, DefaultGravityMBean, Gravity

public class GAEGravity
extends DefaultGravity

Author:
William DRAI, Franck WOLFF

Field Summary
 
Fields inherited from interface org.granite.gravity.Gravity
BYTEARRAY_BODY_HEADER, ENCODE_MESSAGE_BODY_KEY, RECONNECT_INTERVAL_MS_KEY, RECONNECT_MAX_ATTEMPTS_KEY
 
Constructor Summary
GAEGravity(GravityConfig gravityConfig, ServicesConfig servicesConfig, GraniteConfig graniteConfig, SharedContext sharedContext)
           
 
Method Summary
 boolean access(String channelId)
           
protected
<C extends Channel>
C
createChannel(ChannelFactory<C> channelFactory, String channelId)
           
<C extends Channel>
C
getChannel(ChannelFactory<C> channelFactory, String channelId)
           
 void internalStart()
           
protected  void postManage(Channel channel)
           
 Channel removeChannel(String channelId, boolean timeout)
           
 
Methods inherited from class org.granite.gravity.DefaultGravity
cancel, execute, getChannelIdleTimeoutMillis, getCorePoolSize, getGraniteConfig, getGravityConfig, getGravityFactoryName, getKeepAliveTimeMillis, getLongPollingTimeoutMillis, getMaximumPoolSize, getMaxMessagesQueuedPerChannel, getQueueCapacity, getQueueRemainingCapacity, getQueueSize, getReconnectIntervalMillis, getReconnectMaxAttempts, getServiceAdapter, getServicesConfig, getSharedContext, getUdpReceiverFactory, handleMessage, handleMessage, hasUdpReceiverFactory, initThread, isRetryOnError, isStarted, publishMessage, publishMessage, reconfigure, releaseThread, restart, setChannelIdleTimeoutMillis, setCorePoolSize, setKeepAliveTimeMillis, setLongPollingTimeoutMillis, setMaximumPoolSize, setMaxMessagesQueuedPerChannel, setRetryOnError, start, stop, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GAEGravity

public GAEGravity(GravityConfig gravityConfig,
                  ServicesConfig servicesConfig,
                  GraniteConfig graniteConfig,
                  SharedContext sharedContext)
Method Detail

createChannel

protected <C extends Channel> C createChannel(ChannelFactory<C> channelFactory,
                                              String channelId)
Overrides:
createChannel in class DefaultGravity

getChannel

public <C extends Channel> C getChannel(ChannelFactory<C> channelFactory,
                                        String channelId)
Specified by:
getChannel in interface Gravity
Overrides:
getChannel in class DefaultGravity

removeChannel

public Channel removeChannel(String channelId,
                             boolean timeout)
Specified by:
removeChannel in interface Gravity
Overrides:
removeChannel in class DefaultGravity

access

public boolean access(String channelId)
Specified by:
access in interface Gravity
Overrides:
access in class DefaultGravity

internalStart

public void internalStart()
Overrides:
internalStart in class DefaultGravity

postManage

protected void postManage(Channel channel)
Overrides:
postManage in class DefaultGravity