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)
ManagedService
init
in interface ManagedService
nodeEngine
- the NodeEngine this ManagedService belongs to.properties
- the Properties. Can be used to pass settings to the service.public void reset()
ManagedService
reset
in interface ManagedService
public void shutdown(boolean terminate)
ManagedService
shutdown
in interface ManagedService
public QueueContainer getOrCreateContainer(String name, boolean fromBackup) throws Exception
Exception
public void addContainer(String name, QueueContainer container)
public boolean containsQueue(String name)
public void beforeMigration(PartitionMigrationEvent partitionMigrationEvent)
beforeMigration
in interface MigrationAwareService
public Operation prepareReplicationOperation(PartitionReplicationEvent event)
prepareReplicationOperation
in interface MigrationAwareService
public void commitMigration(PartitionMigrationEvent event)
commitMigration
in interface MigrationAwareService
public void rollbackMigration(PartitionMigrationEvent event)
rollbackMigration
in interface MigrationAwareService
public void clearPartitionReplica(int partitionId)
clearPartitionReplica
in interface MigrationAwareService
public void dispatchEvent(QueueEvent event, ItemListener listener)
dispatchEvent
in interface EventPublishingService<QueueEvent,ItemListener>
public QueueProxyImpl createDistributedObject(String objectId)
createDistributedObject
in interface RemoteService
public void destroyDistributedObject(String name)
destroyDistributedObject
in interface RemoteService
public 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 TransactionalService
public void rollbackTransaction(String transactionId)
rollbackTransaction
in interface TransactionalService
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.