public class ListService extends CollectionService
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME |
nodeEngine
Constructor and Description |
---|
ListService(NodeEngine nodeEngine) |
Modifier and Type | Method and Description |
---|---|
DistributedObject |
createDistributedObject(String objectId)
Creates a distributed object.
|
TransactionalListProxy |
createTransactionalObject(String name,
Transaction transaction) |
Map<String,? extends CollectionContainer> |
getContainerMap() |
ListContainer |
getOrCreateContainer(String name,
boolean backup) |
String |
getServiceName() |
Operation |
prepareReplicationOperation(PartitionReplicationEvent event)
Returns an operation to replicate service data and/or state for a specific partition replica
on another cluster member.
|
addContainer, beforeMigration, commitMigration, destroyDistributedObject, dispatchEvent, getMigrationData, init, reset, rollbackMigration, rollbackTransaction, shutdown
public static final String SERVICE_NAME
public ListService(NodeEngine nodeEngine)
public ListContainer getOrCreateContainer(String name, boolean backup)
getOrCreateContainer
in class CollectionService
public Map<String,? extends CollectionContainer> getContainerMap()
getContainerMap
in class CollectionService
public String getServiceName()
getServiceName
in class CollectionService
public DistributedObject createDistributedObject(String objectId)
RemoteService
objectId
- the name for the created distributed objectpublic TransactionalListProxy createTransactionalObject(String name, Transaction transaction)
public Operation prepareReplicationOperation(PartitionReplicationEvent event)
MigrationAwareService
This method will be called on source member whenever partitioning system requires to copy/replicate a partition replica. Returned operation will be executed on destination member. If operation fails by throwing exception, migration process will fail and will be rolled back.
Returning null is allowed and means service does not have anything to replicate.
event
- replicationCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.