public interface Gravity extends ShutdownListener
| Modifier and Type | Field and Description |
|---|---|
static String |
BYTEARRAY_BODY_HEADER |
static String |
ENCODE_MESSAGE_BODY_KEY |
static String |
RECONNECT_INTERVAL_MS_KEY |
static String |
RECONNECT_MAX_ATTEMPTS_KEY |
static final String RECONNECT_INTERVAL_MS_KEY
static final String RECONNECT_MAX_ATTEMPTS_KEY
static final String ENCODE_MESSAGE_BODY_KEY
static final String BYTEARRAY_BODY_HEADER
GravityConfig getGravityConfig()
ServicesConfig getServicesConfig()
GraniteConfig getGraniteConfig()
SharedContext getSharedContext()
boolean hasUdpReceiverFactory()
UdpReceiverFactory getUdpReceiverFactory()
boolean isStarted()
GraniteContext initThread(String sessionId, String clientType)
void releaseThread()
ServiceAdapter getServiceAdapter(String messageType, String destinationId)
void reconfigure(GravityConfig gravityConfig, GraniteConfig graniteConfig)
void stop() throws Exception
stop in interface ShutdownListenerException<C extends Channel> C getChannel(ChannelFactory<C> channelFactory, String clientId)
Channel removeChannel(String clientId, boolean timeout)
void execute(AsyncChannelRunner runnable)
boolean cancel(AsyncChannelRunner runnable)
Message handleMessage(ChannelFactory<? extends Channel> channelFactory, Message message)
Message handleMessage(ChannelFactory<? extends Channel> channelFactory, Message message, boolean skipInterceptor)
Message publishMessage(AsyncMessage message)
Message publishMessage(Channel fromChannel, AsyncMessage message)