public class ReplicatedMapService extends Object implements ManagedService, RemoteService, EventPublishingService<Object,Object>
ReplicatedRecordStores that actually hold the data| Modifier and Type | Field and Description |
|---|---|
static String |
EVENT_TOPIC_NAME
Public constant for the internal name of the replication topic
|
static String |
SERVICE_NAME
Public constant for the internal service name of the ReplicatedMapService
|
| Constructor and Description |
|---|
ReplicatedMapService(NodeEngine nodeEngine) |
| Modifier and Type | Method and Description |
|---|---|
String |
addEventListener(EventListener entryListener,
EventFilter eventFilter,
String mapName) |
DistributedObject |
createDistributedObject(String objectName)
Creates a distributed object.
|
void |
destroyDistributedObject(String objectName)
Destroys a distributed object.
|
void |
dispatchEvent(Object event,
Object listener) |
ReplicatedMapConfig |
getReplicatedMapConfig(String name) |
ReplicatedRecordStore |
getReplicatedRecordStore(String name,
boolean create) |
void |
init(NodeEngine nodeEngine,
Properties properties)
Initializes this ManagedService
|
boolean |
removeEventListener(String mapName,
String registrationId) |
void |
reset()
reset this ManagedService back to initial state.
|
void |
shutdown(boolean terminate)
Shuts down this ManagedService.
|
public static final String SERVICE_NAME
public static final String EVENT_TOPIC_NAME
public ReplicatedMapService(NodeEngine nodeEngine)
public void init(NodeEngine nodeEngine, Properties properties)
ManagedServiceinit in interface ManagedServicenodeEngine - the NodeEngine that 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 ManagedServiceterminate - true to shut down the ManagedServicepublic DistributedObject createDistributedObject(String objectName)
RemoteServicecreateDistributedObject in interface RemoteServiceobjectName - the name for the created distributed objectpublic void destroyDistributedObject(String objectName)
RemoteServicedestroyDistributedObject in interface RemoteServiceobjectName - the name of the distributed object to destroypublic void dispatchEvent(Object event, Object listener)
dispatchEvent in interface EventPublishingService<Object,Object>public ReplicatedMapConfig getReplicatedMapConfig(String name)
public ReplicatedRecordStore getReplicatedRecordStore(String name, boolean create)
public String addEventListener(EventListener entryListener, EventFilter eventFilter, String mapName)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.