public interface QueryCacheContext
QueryCache
life-cycle management phases.
Any functionality for a QueryCache
should be accessed
on this context. It also helps to make abstractions over auxiliary services to provide different implementations
on client and on node sides.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. |
PublisherContext getPublisherContext()
PublisherContext
for this context.PublisherContext
PublisherContext
SubscriberContext getSubscriberContext()
SubscriberContext
for this context.SubscriberContext
for this context.SubscriberContext
InternalSerializationService getSerializationService()
InternalSerializationService
for this context.InternalSerializationService
for this context.QueryCacheEventService getQueryCacheEventService()
QueryCacheEventService
factory for this context
which will be used to create QueryCacheEventService
implementations
for client or node sides.QueryCacheEventService
for this context.QueryCacheConfigurator getQueryCacheConfigurator()
QueryCacheConfigurator
for this context
which will be used to create QueryCacheConfigurator
implementations
for client or node sides.QueryCacheConfigurator
for this context.QueryCacheScheduler getQueryCacheScheduler()
QueryCacheScheduler
for this context
which will be used to create QueryCacheScheduler
implementations
for client or node sides.QueryCacheScheduler
for this context.Collection<Member> getMemberList()
InvokerWrapper getInvokerWrapper()
InvokerWrapper
for this context.InvokerWrapper
for this context.Object toObject(Object obj)
Data
to its object form.obj
- this object may possibly be an instance of Data
type.Address getThisNodesAddress()
int getPartitionId(Object object)
object
- supplied object.int getPartitionCount()
ContextMutexFactory getLifecycleMutexFactory()
void destroy()
void setSubscriberContext(SubscriberContext subscriberContext)
SubscriberContext
implementation used by this query-cache context.subscriberContext
- the supplied subscriberContext
to be set.Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.