public class RiakEntityStoreMixin extends Object implements ServiceActivation, MapEntityStore, RiakAccessors
ServiceActivation.ServiceActivatorMapEntityStore.MapChange, MapEntityStore.MapChanger, MapEntityStore.MapChanges| Constructor and Description |
|---|
RiakEntityStoreMixin() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateService()
Called after ServiceComposite Activation.
|
void |
applyChanges(MapEntityStore.MapChanges changes) |
Stream<Reader> |
entityStates() |
Reader |
get(EntityReference entityReference) |
void |
passivateService()
Called before ServiceComposite Passivation.
|
com.basho.riak.client.api.RiakClient |
riakClient() |
com.basho.riak.client.core.query.Namespace |
riakNamespace() |
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 com.basho.riak.client.api.RiakClient riakClient()
riakClient in interface RiakAccessorspublic com.basho.riak.client.core.query.Namespace riakNamespace()
riakNamespace in interface RiakAccessorspublic Reader get(EntityReference entityReference)
get in interface MapEntityStoreentityReference - The reference to the entity that we want to get.public void applyChanges(MapEntityStore.MapChanges changes)
applyChanges in interface MapEntityStorepublic Stream<Reader> entityStates()
entityStates in interface MapEntityStore