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. | 
| protected void | flushPublishersOnNodeShutdown()This is a best effort approach; there is no guarantee that events in publishers internal buffers will be fired,
  EventServicecan drop them. | 
| InvokerWrapper | getInvokerWrapper()Returns  InvokerWrapperfor this context. | 
| Collection<Member> | getMemberList()Returns member list of the cluster. | 
| int | getPartitionId(Object object)Returns partition id of the supplied object. | 
| PublisherContext | getPublisherContext()Returns  PublisherContextfor this context. | 
| QueryCacheConfigurator | getQueryCacheConfigurator()Returns  QueryCacheConfiguratorfor this context
 which will be used to createQueryCacheConfiguratorimplementations
 for client or node sides. | 
| QueryCacheEventService | getQueryCacheEventService()Returns  QueryCacheEventServicefactory for this context
 which will be used to createQueryCacheEventServiceimplementations
 for client or node sides. | 
| QueryCacheScheduler | getQueryCacheScheduler()Returns  QueryCacheSchedulerfor this context
 which will be used to createQueryCacheSchedulerimplementations
 for client or node sides. | 
| InternalSerializationService | getSerializationService()Returns  InternalSerializationServicefor this context. | 
| SubscriberContext | getSubscriberContext()Returns  SubscriberContextfor 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  Datato its object form. | 
public NodeQueryCacheContext(MapServiceContext mapServiceContext)
protected void flushPublishersOnNodeShutdown()
EventService can drop them.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.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.