public class NodeQueryCacheContext extends Object implements QueryCacheContext
QueryCacheContext.QueryCacheContext| Constructor and Description |
|---|
NodeQueryCacheContext(MapServiceContext mapServiceContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys everything in this context.
|
InvokerWrapper |
getInvokerWrapper()
Returns
InvokerWrapper for this context. |
ContextMutexFactory |
getLifecycleMutexFactory() |
Collection<Member> |
getMemberList()
Returns member list of the cluster.
|
int |
getPartitionId(Object object)
Returns partition ID of the supplied object.
|
PublisherContext |
getPublisherContext()
Returns
PublisherContext for this context. |
QueryCacheConfigurator |
getQueryCacheConfigurator()
Returns
QueryCacheConfigurator for this context
which will be used to create QueryCacheConfigurator implementations
for client or node sides. |
QueryCacheEventService |
getQueryCacheEventService()
Returns
QueryCacheEventService factory for this context
which will be used to create QueryCacheEventService implementations
for client or node sides. |
QueryCacheScheduler |
getQueryCacheScheduler()
Returns
QueryCacheScheduler for this context
which will be used to create QueryCacheScheduler implementations
for client or node sides. |
InternalSerializationService |
getSerializationService()
Returns
InternalSerializationService for this context. |
SubscriberContext |
getSubscriberContext()
Returns
SubscriberContext for this context. |
Address |
getThisNodesAddress()
Returns this nodes address.
|
void |
setSubscriberContext(SubscriberContext subscriberContext)
Only used for testing purposes.
|
Object |
toObject(Object obj)
Helper method to convert provided
Data
to its object form. |
public NodeQueryCacheContext(MapServiceContext mapServiceContext)
public void destroy()
QueryCacheContextdestroy in interface QueryCacheContextpublic PublisherContext getPublisherContext()
QueryCacheContextPublisherContext for this context.getPublisherContext in interface QueryCacheContextPublisherContextPublisherContextpublic SubscriberContext getSubscriberContext()
QueryCacheContextSubscriberContext for this context.getSubscriberContext in interface QueryCacheContextSubscriberContext for this context.SubscriberContextpublic void setSubscriberContext(SubscriberContext subscriberContext)
QueryCacheContextSubscriberContext implementation used by this query-cache context.setSubscriberContext in interface QueryCacheContextsubscriberContext - the supplied subscriberContext to be set.public QueryCacheEventService getQueryCacheEventService()
QueryCacheContextQueryCacheEventService factory for this context
which will be used to create QueryCacheEventService implementations
for client or node sides.getQueryCacheEventService in interface QueryCacheContextQueryCacheEventService for this context.public QueryCacheConfigurator getQueryCacheConfigurator()
QueryCacheContextQueryCacheConfigurator for this context
which will be used to create QueryCacheConfigurator implementations
for client or node sides.getQueryCacheConfigurator in interface QueryCacheContextQueryCacheConfigurator for this context.public QueryCacheScheduler getQueryCacheScheduler()
QueryCacheContextQueryCacheScheduler for this context
which will be used to create QueryCacheScheduler implementations
for client or node sides.getQueryCacheScheduler in interface QueryCacheContextQueryCacheScheduler for this context.public InternalSerializationService getSerializationService()
QueryCacheContextInternalSerializationService for this context.getSerializationService in interface QueryCacheContextInternalSerializationService for this context.public Address getThisNodesAddress()
QueryCacheContextgetThisNodesAddress in interface QueryCacheContextpublic Collection<Member> getMemberList()
QueryCacheContextgetMemberList in interface QueryCacheContextpublic int getPartitionId(Object object)
QueryCacheContextgetPartitionId in interface QueryCacheContextobject - supplied object.public InvokerWrapper getInvokerWrapper()
QueryCacheContextInvokerWrapper for this context.getInvokerWrapper in interface QueryCacheContextInvokerWrapper for this context.public Object toObject(Object obj)
QueryCacheContextData
to its object form.toObject in interface QueryCacheContextobj - this object may possibly be an instance of Data type.public ContextMutexFactory getLifecycleMutexFactory()
getLifecycleMutexFactory in interface QueryCacheContextCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.