public class SagaEntry extends Object
Java representation of sagas stored in a mongo instance.
| Constructor and Description |
|---|
SagaEntry(com.mongodb.DBObject dbSaga) |
SagaEntry(Saga saga,
SagaSerializer serializer)
Constructs a new SagaEntry for the given
saga. |
| Modifier and Type | Method and Description |
|---|---|
com.mongodb.DBObject |
asDBObject() |
Saga |
getSaga(SagaSerializer serializer)
Returns the Saga instance stored in this entry.
|
String |
getSagaId()
Returns the Identifier of the Saga stored in this entry.
|
static com.mongodb.DBObject |
queryByIdentifier(String identifier) |
public SagaEntry(Saga saga, SagaSerializer 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 streampublic SagaEntry(com.mongodb.DBObject dbSaga)
public Saga getSaga(SagaSerializer serializer)
serializer - The serializer to decode the Sagapublic String getSagaId()
public com.mongodb.DBObject asDBObject()
public static com.mongodb.DBObject queryByIdentifier(String identifier)
Copyright © 2012. All Rights Reserved.