public class QueueService extends Object implements ManagedService, MigrationAwareService, TransactionalService, RemoteService, EventPublishingService<QueueEvent,ItemListener>, StatisticsAwareService
QueueEvictionProcessor| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME
Service name.
|
| Constructor and Description |
|---|
QueueService(NodeEngine nodeEngine) |
public static final String SERVICE_NAME
public QueueService(NodeEngine nodeEngine)
public void scheduleEviction(String name, long delay)
public void cancelEviction(String name)
public void init(NodeEngine nodeEngine, Properties properties)
ManagedServiceinit in interface ManagedServicenodeEngine - the NodeEngine that this ManagedService belongs to.properties - the Properties. Can be used to pass settings to the service.public void reset()
ManagedServicereset in interface ManagedServicepublic void shutdown(boolean terminate)
ManagedServiceshutdown in interface ManagedServiceterminate - true to shut down the ManagedServicepublic QueueContainer getOrCreateContainer(String name, boolean fromBackup) throws Exception
Exceptionpublic void addContainer(String name, QueueContainer container)
public boolean containsQueue(String name)
public void beforeMigration(PartitionMigrationEvent partitionMigrationEvent)
beforeMigration in interface MigrationAwareServicepublic Operation prepareReplicationOperation(PartitionReplicationEvent event)
prepareReplicationOperation in interface MigrationAwareServicepublic void commitMigration(PartitionMigrationEvent event)
commitMigration in interface MigrationAwareServicepublic void rollbackMigration(PartitionMigrationEvent event)
rollbackMigration in interface MigrationAwareServicepublic void clearPartitionReplica(int partitionId)
clearPartitionReplica in interface MigrationAwareServicepublic void dispatchEvent(QueueEvent event, ItemListener listener)
dispatchEvent in interface EventPublishingService<QueueEvent,ItemListener>public QueueProxyImpl createDistributedObject(String objectId)
RemoteServicecreateDistributedObject in interface RemoteServiceobjectId - the name for the created distributed objectpublic void destroyDistributedObject(String name)
RemoteServicedestroyDistributedObject in interface RemoteServicename - the name of the distributed object to destroypublic String addItemListener(String name, ItemListener listener, boolean includeValue)
public NodeEngine getNodeEngine()
public LocalQueueStats createLocalQueueStats(String name, int partitionId)
public LocalQueueStats createLocalQueueStats(String name)
public LocalQueueStatsImpl getLocalQueueStatsImpl(String name)
public TransactionalQueueProxy createTransactionalObject(String name, TransactionSupport transaction)
createTransactionalObject in interface TransactionalServicepublic void rollbackTransaction(String transactionId)
rollbackTransaction in interface TransactionalServicepublic Map<String,LocalQueueStats> getStats()
getStats in interface StatisticsAwareServiceCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.