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 |
getPartitionCount() |
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()
QueryCacheContext
destroy
in interface QueryCacheContext
public PublisherContext getPublisherContext()
QueryCacheContext
PublisherContext
for this context.getPublisherContext
in interface QueryCacheContext
PublisherContext
PublisherContext
public SubscriberContext getSubscriberContext()
QueryCacheContext
SubscriberContext
for this context.getSubscriberContext
in interface QueryCacheContext
SubscriberContext
for this context.SubscriberContext
public void setSubscriberContext(SubscriberContext subscriberContext)
QueryCacheContext
SubscriberContext
implementation used by this query-cache context.setSubscriberContext
in interface QueryCacheContext
subscriberContext
- the supplied subscriberContext
to be set.public QueryCacheEventService getQueryCacheEventService()
QueryCacheContext
QueryCacheEventService
factory for this context
which will be used to create QueryCacheEventService
implementations
for client or node sides.getQueryCacheEventService
in interface QueryCacheContext
QueryCacheEventService
for this context.public QueryCacheConfigurator getQueryCacheConfigurator()
QueryCacheContext
QueryCacheConfigurator
for this context
which will be used to create QueryCacheConfigurator
implementations
for client or node sides.getQueryCacheConfigurator
in interface QueryCacheContext
QueryCacheConfigurator
for this context.public QueryCacheScheduler getQueryCacheScheduler()
QueryCacheContext
QueryCacheScheduler
for this context
which will be used to create QueryCacheScheduler
implementations
for client or node sides.getQueryCacheScheduler
in interface QueryCacheContext
QueryCacheScheduler
for this context.public InternalSerializationService getSerializationService()
QueryCacheContext
InternalSerializationService
for this context.getSerializationService
in interface QueryCacheContext
InternalSerializationService
for this context.public Address getThisNodesAddress()
QueryCacheContext
getThisNodesAddress
in interface QueryCacheContext
public Collection<Member> getMemberList()
QueryCacheContext
getMemberList
in interface QueryCacheContext
public int getPartitionId(Object object)
QueryCacheContext
getPartitionId
in interface QueryCacheContext
object
- supplied object.public int getPartitionCount()
getPartitionCount
in interface QueryCacheContext
public InvokerWrapper getInvokerWrapper()
QueryCacheContext
InvokerWrapper
for this context.getInvokerWrapper
in interface QueryCacheContext
InvokerWrapper
for this context.public Object toObject(Object obj)
QueryCacheContext
Data
to its object form.toObject
in interface QueryCacheContext
obj
- this object may possibly be an instance of Data
type.public ContextMutexFactory getLifecycleMutexFactory()
getLifecycleMutexFactory
in interface QueryCacheContext
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.