com.hazelcast.multimap.impl
public class MultiMapService extends Object implements ManagedService, RemoteService, MigrationAwareService, EventPublishingService<EventData,EntryListener>, TransactionalService
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME |
Constructor and Description |
---|
MultiMapService(NodeEngine nodeEngine) |
public static final String SERVICE_NAME
public MultiMapService(NodeEngine nodeEngine)
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 MultiMapContainer getOrCreateCollectionContainer(int partitionId, String name)
public MultiMapPartitionContainer getPartitionContainer(int partitionId)
public DistributedObject createDistributedObject(String name)
createDistributedObject
in interface RemoteService
public void destroyDistributedObject(String name)
destroyDistributedObject
in interface RemoteService
public SerializationService getSerializationService()
public NodeEngine getNodeEngine()
public void publishMultiMapEvent(String mapName, EntryEventType eventType, int numberOfEntriesAffected)
public final void publishEntryEvent(String multiMapName, EntryEventType eventType, Data key, Object newValue, Object oldValue)
public String addListener(String name, EventListener listener, Data key, boolean includeValue, boolean local)
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 LocalMapStats createStats(String name)
public LocalMultiMapStatsImpl getLocalMultiMapStatsImpl(String name)
public <T extends TransactionalObject> T createTransactionalObject(String name, TransactionSupport transaction)
createTransactionalObject
in interface TransactionalService
public void rollbackTransaction(String transactionId)
rollbackTransaction
in interface TransactionalService
public void dispatchEvent(EventData event, EntryListener listener)
dispatchEvent
in interface EventPublishingService<EventData,EntryListener>
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.