@Entity public class SagaEntry extends Object
Modifier | Constructor and Description |
---|---|
protected |
SagaEntry()
Constructor required by JPA.
|
|
SagaEntry(Saga saga,
Serializer serializer)
Constructs a new SagaEntry for the given
saga . |
Modifier and Type | Method and Description |
---|---|
String |
getRevision()
Returns the revision of the serialized saga
|
Saga |
getSaga(Serializer serializer)
Returns the Saga instance stored in this entry.
|
String |
getSagaId()
Returns the identifier of the saga contained in this entry
|
String |
getSagaType()
Returns the type identifier of the serialized saga
|
byte[] |
getSerializedSaga()
Returns the serialized form of the Saga.
|
public SagaEntry(Saga saga, Serializer serializer)
saga
. The given saga must be serializable. The provided
saga is not modified by this operation.saga
- The saga to storeserializer
- The serialization mechanism to convert the Saga to a byte streamprotected SagaEntry()
public Saga getSaga(Serializer serializer)
serializer
- The serializer to decode the Sagapublic byte[] getSerializedSaga()
public String getSagaId()
public String getRevision()
public String getSagaType()
Copyright © 2010-2014. All Rights Reserved.