public class RedisEntityStoreMixin extends Object implements ServiceActivation, RedisAccessors, MapEntityStore
ServiceActivation.ServiceActivatorMapEntityStore.MapChange, MapEntityStore.MapChanger, MapEntityStore.MapChanges| Constructor and Description |
|---|
RedisEntityStoreMixin() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateService()
Called after ServiceComposite Activation.
|
void |
applyChanges(MapEntityStore.MapChanges changes) |
Stream<Reader> |
entityStates() |
Reader |
get(EntityReference entityReference) |
redis.clients.jedis.JedisPool |
jedisPool() |
void |
passivateService()
Called before ServiceComposite Passivation.
|
public void activateService()
throws Exception
ServiceActivationactivateService in interface ServiceActivationException - if unable to activatepublic void passivateService()
throws Exception
ServiceActivationpassivateService in interface ServiceActivationException - if unable to passivatepublic redis.clients.jedis.JedisPool jedisPool()
jedisPool in interface RedisAccessorspublic Reader get(EntityReference entityReference) throws EntityStoreException
get in interface MapEntityStoreentityReference - The reference to the entity that we want to get.EntityStoreExceptionpublic void applyChanges(MapEntityStore.MapChanges changes) throws Exception
applyChanges in interface MapEntityStoreExceptionpublic Stream<Reader> entityStates()
entityStates in interface MapEntityStore