public class HazelcastEntityStoreMixin extends Object implements ServiceActivation, HazelcastAccessors, MapEntityStore
ServiceActivation.ServiceActivator
MapEntityStore.MapChange, MapEntityStore.MapChanger, MapEntityStore.MapChanges
Constructor and Description |
---|
HazelcastEntityStoreMixin() |
Modifier and Type | Method and Description |
---|---|
void |
activateService()
Called after ServiceComposite Activation.
|
void |
applyChanges(MapEntityStore.MapChanges changes) |
Stream<Reader> |
entityStates() |
Reader |
get(EntityReference ref) |
com.hazelcast.core.HazelcastInstance |
hazelcastInstanceUsed() |
com.hazelcast.core.IMap |
hazelcastMapUsed() |
void |
passivateService()
Called before ServiceComposite Passivation.
|
public void activateService() throws Exception
ServiceActivation
activateService
in interface ServiceActivation
Exception
- if unable to activatepublic void passivateService() throws Exception
ServiceActivation
passivateService
in interface ServiceActivation
Exception
- if unable to passivatepublic com.hazelcast.core.HazelcastInstance hazelcastInstanceUsed()
hazelcastInstanceUsed
in interface HazelcastAccessors
public com.hazelcast.core.IMap hazelcastMapUsed()
hazelcastMapUsed
in interface HazelcastAccessors
public Reader get(EntityReference ref) throws EntityStoreException
get
in interface MapEntityStore
ref
- The reference to the entity that we want to get.EntityStoreException
public void applyChanges(MapEntityStore.MapChanges changes) throws Exception
applyChanges
in interface MapEntityStore
Exception
public Stream<Reader> entityStates()
entityStates
in interface MapEntityStore