public class QueueService extends Object implements ManagedService, MigrationAwareService, TransactionalService, RemoteService, EventPublishingService<QueueEvent,ItemListener>
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 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 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)
createDistributedObject in interface RemoteServicepublic void destroyDistributedObject(String name)
destroyDistributedObject in interface RemoteServicepublic String addItemListener(String name, ItemListener listener, boolean includeValue)
public NodeEngine getNodeEngine()
public LocalQueueStats createLocalQueueStats(String name, int partitionId)
public LocalQueueStatsImpl getLocalQueueStatsImpl(String name)
public TransactionalQueueProxy createTransactionalObject(String name, TransactionSupport transaction)
createTransactionalObject in interface TransactionalServicepublic void rollbackTransaction(String transactionId)
rollbackTransaction in interface TransactionalServiceCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.