T - the serialized content-type of the saga.@MappedSuperclass public abstract class AbstractSagaEntry<T> extends Object
SagaEntry is declared in the concrete implementation of this class.| Modifier and Type | Field and Description |
|---|---|
protected String |
revision |
protected String |
sagaId |
protected String |
sagaType |
protected T |
serializedSaga |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSagaEntry()
Default constructor required by JPA.
|
|
AbstractSagaEntry(Object saga,
String sagaIdentifier,
Serializer serializer,
Class<T> contentType)
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
|
T |
getSerializedSaga()
Returns the serialized form of the Saga.
|
protected String sagaId
protected String sagaType
protected String revision
protected T serializedSaga
public AbstractSagaEntry(Object saga, String sagaIdentifier, Serializer serializer, Class<T> contentType)
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 streamcontentType - The saga content type to serialize toprotected AbstractSagaEntry()
public T getSerializedSaga()
public String getSagaId()
public String getRevision()
public String getSagaType()
Copyright © 2010–2018. All rights reserved.