public class DefaultPublisherContext extends Object implements PublisherContext
PublisherContext.PublisherContext| Constructor and Description |
|---|
DefaultPublisherContext(QueryCacheContext context,
NodeEngine nodeEngine,
IFunction<String,String> listenerRegistrator) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Flushes this publisher context.
|
AccumulatorInfoSupplier |
getAccumulatorInfoSupplier()
Returns
AccumulatorInfoSupplier for this context. |
QueryCacheContext |
getContext()
Returns
QueryCacheContext on this node. |
IFunction<String,String> |
getListenerRegistrator()
Returns a helper function in order to register listener to
IMap |
MapListenerRegistry |
getMapListenerRegistry()
Returns
MapListenerRegistry for this context. |
MapPublisherRegistry |
getMapPublisherRegistry()
Returns
MapPublisherRegistry for this context. |
NodeEngine |
getNodeEngine()
Returns underlying
NodeEngine for this node. |
void |
handleConnectedSubscriber(String uuid)
Handles a reconnected subscriber.
|
void |
handleDisconnectedSubscriber(String uuid)
Handles a disconnected subscriber.
|
public DefaultPublisherContext(QueryCacheContext context, NodeEngine nodeEngine, IFunction<String,String> listenerRegistrator)
public AccumulatorInfoSupplier getAccumulatorInfoSupplier()
PublisherContextAccumulatorInfoSupplier for this context.getAccumulatorInfoSupplier in interface PublisherContextAccumulatorInfoSupplier for this context.AccumulatorInfoSupplierpublic MapPublisherRegistry getMapPublisherRegistry()
PublisherContextMapPublisherRegistry for this context.getMapPublisherRegistry in interface PublisherContextMapPublisherRegistry for this context.MapPublisherRegistrypublic MapListenerRegistry getMapListenerRegistry()
PublisherContextMapListenerRegistry for this context.getMapListenerRegistry in interface PublisherContextMapListenerRegistry for this context.MapListenerRegistrypublic QueryCacheContext getContext()
PublisherContextQueryCacheContext on this node.getContext in interface PublisherContextQueryCacheContext on this node.public NodeEngine getNodeEngine()
PublisherContextNodeEngine for this node.getNodeEngine in interface PublisherContextNodeEngine for this node.public IFunction<String,String> getListenerRegistrator()
PublisherContextIMapgetListenerRegistrator in interface PublisherContextIMappublic void handleDisconnectedSubscriber(String uuid)
PublisherContextQueryCache resources.handleDisconnectedSubscriber in interface PublisherContextuuid - client or node UUID of subscriber.public void handleConnectedSubscriber(String uuid)
PublisherContext#handleDisconnectedSubscriber.handleConnectedSubscriber in interface PublisherContextuuid - client or node UUID of subscriber.PublisherContext.handleDisconnectedSubscriber(java.lang.String)public void flush()
PublisherContextflush in interface PublisherContextCopyright © 2019 Hazelcast, Inc.. All Rights Reserved.