org.qi4j.entitystore.hazelcast
Class HazelcastEntityStoreMixin
java.lang.Object
org.qi4j.entitystore.hazelcast.HazelcastEntityStoreMixin
- All Implemented Interfaces:
- ServiceActivation, HazelcastAccessors, MapEntityStore
public class HazelcastEntityStoreMixin
- extends java.lang.Object
- implements ServiceActivation, HazelcastAccessors, MapEntityStore
Hazelcast implementation of MapEntityStore.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HazelcastEntityStoreMixin
public HazelcastEntityStoreMixin()
activateService
public void activateService()
throws java.lang.Exception
- Description copied from interface:
ServiceActivation
- Called after ServiceComposite Activation.
- Specified by:
activateService
in interface ServiceActivation
- Throws:
java.lang.Exception
passivateService
public void passivateService()
throws java.lang.Exception
- Description copied from interface:
ServiceActivation
- Called before ServiceComposite Passivation.
- Specified by:
passivateService
in interface ServiceActivation
- Throws:
java.lang.Exception
hazelcastInstanceUsed
public com.hazelcast.core.HazelcastInstance hazelcastInstanceUsed()
- Specified by:
hazelcastInstanceUsed
in interface HazelcastAccessors
hazelcastMapUsed
public com.hazelcast.core.IMap hazelcastMapUsed()
- Specified by:
hazelcastMapUsed
in interface HazelcastAccessors
get
public java.io.Reader get(EntityReference ref)
throws EntityStoreException
- Specified by:
get
in interface MapEntityStore
- Returns:
- Entity state Reader
- Throws:
EntityStoreException
applyChanges
public void applyChanges(MapEntityStore.MapChanges changes)
throws java.io.IOException
- Specified by:
applyChanges
in interface MapEntityStore
- Throws:
java.io.IOException
entityStates
public Input<java.io.Reader,java.io.IOException> entityStates()
- Specified by:
entityStates
in interface MapEntityStore
- Returns:
- All entities state Readers