com.hazelcast.concurrent.atomicreference
Class AtomicReferenceService
java.lang.Object
com.hazelcast.concurrent.atomicreference.AtomicReferenceService
- All Implemented Interfaces:
- ManagedService, MigrationAwareService, RemoteService
public class AtomicReferenceService
- extends Object
- implements ManagedService, RemoteService, MigrationAwareService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVICE_NAME
public static final String SERVICE_NAME
- The name of the AtomicReferenceService.
- See Also:
- Constant Field Values
AtomicReferenceService
public AtomicReferenceService()
getReference
public ReferenceWrapper getReference(String name)
containsAtomicReference
public boolean containsAtomicReference(String name)
init
public void init(NodeEngine nodeEngine,
Properties properties)
- Description copied from interface:
ManagedService
- Initializes this ManagedService
- Specified by:
init
in interface ManagedService
- Parameters:
nodeEngine
- the NodeEngine this ManagedService belongs to.properties
- the Properties. Can be used to pass settings to the service.
reset
public void reset()
- Description copied from interface:
ManagedService
- reset this ManagedService back to initial state.
todo: what is the purpose of reset
- Specified by:
reset
in interface ManagedService
shutdown
public void shutdown(boolean terminate)
- Description copied from interface:
ManagedService
- Shuts down this ManagedService.
todo: what is the purpose of the terminate variable.
- Specified by:
shutdown
in interface ManagedService
createDistributedObject
public AtomicReferenceProxy createDistributedObject(String name)
- Specified by:
createDistributedObject
in interface RemoteService
destroyDistributedObject
public void destroyDistributedObject(String name)
- Specified by:
destroyDistributedObject
in interface RemoteService
beforeMigration
public void beforeMigration(PartitionMigrationEvent partitionMigrationEvent)
- Specified by:
beforeMigration
in interface MigrationAwareService
prepareReplicationOperation
public Operation prepareReplicationOperation(PartitionReplicationEvent event)
- Specified by:
prepareReplicationOperation
in interface MigrationAwareService
commitMigration
public void commitMigration(PartitionMigrationEvent partitionMigrationEvent)
- Specified by:
commitMigration
in interface MigrationAwareService
rollbackMigration
public void rollbackMigration(PartitionMigrationEvent partitionMigrationEvent)
- Specified by:
rollbackMigration
in interface MigrationAwareService
clearPartitionReplica
public void clearPartitionReplica(int partitionId)
- Specified by:
clearPartitionReplica
in interface MigrationAwareService
removeReference
public void removeReference(int partitionId)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.