org.qi4j.entitystore.hazelcast
Class HazelcastEntityStoreMixin

java.lang.Object
  extended by org.qi4j.entitystore.map.MapEntityStoreMixin
      extended by org.qi4j.entitystore.hazelcast.HazelcastEntityStoreMixin
All Implemented Interfaces:
Composite, Configuration, Identity, Activatable, ServiceComposite, HazelcastEntityStoreService, MapEntityStore, StateStore, LockingAbstractComposite, EntityStateVersions, EntityStore, EntityStoreSPI

public abstract class HazelcastEntityStoreMixin
extends MapEntityStoreMixin
implements Activatable, HazelcastEntityStoreService, MapEntityStore


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.qi4j.spi.entitystore.EntityStateVersions
EntityStateVersions.EntityStateVersionsMixin
 
Nested classes/interfaces inherited from interface org.qi4j.api.entity.Identity
Identity.IdentityMixin
 
Nested classes/interfaces inherited from interface org.qi4j.api.configuration.Configuration
Configuration.ConfigurationMixin<T>
 
Nested classes/interfaces inherited from interface org.qi4j.entitystore.map.MapEntityStore
MapEntityStore.JSONKeys, MapEntityStore.MapChanger, MapEntityStore.MapChanges
 
Field Summary
 
Fields inherited from class org.qi4j.entitystore.map.MapEntityStoreMixin
uuid
 
Constructor Summary
HazelcastEntityStoreMixin()
           
 
Method Summary
 void activate()
          This is invoked on the service when the instance is being activated
 void applyChanges(MapEntityStore.MapChanges changes)
           
 Input<Reader,IOException> entityStates()
           
 Reader get(EntityReference ref)
           
 com.hazelcast.core.HazelcastInstance hazelcastInstanceUsed()
           
 com.hazelcast.core.IMap hazelcastMapUsed()
           
 void passivate()
          This is invoked on the service when the instance is being passivated
 
Methods inherited from class org.qi4j.entitystore.map.MapEntityStoreMixin
applyChanges, entityStates, getEntityState, getState, newEntityState, newUnitOfWork, newUnitOfWorkId, readEntityState, writeEntityState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.qi4j.spi.entitystore.EntityStore
entityStates, newUnitOfWork
 
Methods inherited from interface org.qi4j.spi.entitystore.EntityStateVersions
checkForConcurrentModification, forgetVersions, rememberVersion
 
Methods inherited from interface org.qi4j.api.entity.Identity
identity
 
Methods inherited from interface org.qi4j.api.composite.Composite
metaInfo, type
 
Methods inherited from interface org.qi4j.api.configuration.Configuration
configuration, refresh, save
 

Constructor Detail

HazelcastEntityStoreMixin

public HazelcastEntityStoreMixin()
Method Detail

activate

public void activate()
              throws Exception
Description copied from interface: Activatable
This is invoked on the service when the instance is being activated

Specified by:
activate in interface Activatable
Overrides:
activate in class MapEntityStoreMixin
Throws:
Exception - if service could not be activated

passivate

public void passivate()
               throws Exception
Description copied from interface: Activatable
This is invoked on the service when the instance is being passivated

Specified by:
passivate in interface Activatable
Overrides:
passivate in class MapEntityStoreMixin
Throws:
Exception - if the service could not be passivated

hazelcastInstanceUsed

public com.hazelcast.core.HazelcastInstance hazelcastInstanceUsed()
Specified by:
hazelcastInstanceUsed in interface HazelcastEntityStoreService

hazelcastMapUsed

public com.hazelcast.core.IMap hazelcastMapUsed()
Specified by:
hazelcastMapUsed in interface HazelcastEntityStoreService

get

public Reader get(EntityReference ref)
           throws EntityStoreException
Specified by:
get in interface MapEntityStore
Throws:
EntityStoreException

applyChanges

public void applyChanges(MapEntityStore.MapChanges changes)
                  throws IOException
Specified by:
applyChanges in interface MapEntityStore
Throws:
IOException

entityStates

public Input<Reader,IOException> entityStates()
Specified by:
entityStates in interface MapEntityStore