public abstract class Saga
extends akka.actor.UntypedActor
| Modifier and Type | Field and Description |
|---|---|
protected akka.actor.ActorRef |
commandDispatcher |
protected String |
id |
protected SagaRepository |
repository |
static byte |
STATE_FINISHED |
static byte |
STATE_INITIAL |
| Constructor and Description |
|---|
Saga(String id,
akka.actor.ActorRef commandDispatcher,
SagaRepository repository) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
void |
forceSetState(byte state) |
String |
getId() |
byte |
getState() |
int |
hashCode() |
void |
onReceive(Object o) |
void |
preStart() |
protected void |
transitionState(byte state) |
public static final byte STATE_INITIAL
public static final byte STATE_FINISHED
protected String id
protected akka.actor.ActorRef commandDispatcher
protected SagaRepository repository
public Saga(String id, akka.actor.ActorRef commandDispatcher, SagaRepository repository)
public void preStart()
throws Exception
preStart in interface akka.actor.ActorpreStart in class akka.actor.UntypedActorExceptionpublic void onReceive(Object o)
onReceive in class akka.actor.UntypedActorpublic String getId()
public byte getState()
protected void transitionState(byte state)
public void forceSetState(byte state)
Copyright © 2014. All rights reserved.