@Entity @Entity public class SagaEntry<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
revision |
protected String |
sagaId |
protected String |
sagaType |
protected byte[] |
serializedSaga |
Modifier | Constructor and Description |
---|---|
protected |
SagaEntry()
Constructor required by JPA.
|
|
SagaEntry(T saga,
String sagaIdentifier,
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
|
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.
|
protected String sagaId
protected String sagaType
protected String revision
protected byte[] serializedSaga
public SagaEntry(T saga, String sagaIdentifier, Serializer serializer)
saga
. The given saga must be serializable. The provided saga is
not modified by this operation.saga
- The saga to storesagaIdentifier
- The saga identifierserializer
- The serialization mechanism to convert the Saga to a byte streamprotected SagaEntry()
SagaEntry(Object, String, Serializer)
public byte[] getSerializedSaga()
public String getSagaId()
public String getRevision()
public String getSagaType()
Copyright © 2010–2024. All rights reserved.