|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.saga.repository.mongo.SagaEntry
public class SagaEntry
Java representation of sagas stored in a mongo instance
Constructor Summary | |
---|---|
SagaEntry(com.mongodb.DBObject dbSaga)
Initializes a Saga entry using a DBObject containing the Mongo Document |
|
SagaEntry(Saga saga,
Serializer serializer)
Constructs a new SagaEntry for the given saga . |
Method Summary | |
---|---|
com.mongodb.DBObject |
asDBObject()
Returns the Mongo Document representing the Saga provided in this entry. |
Saga |
getSaga(Serializer serializer)
Returns the Saga instance stored in this entry. |
static com.mongodb.DBObject |
queryByIdentifier(String identifier)
Returns the Mongo Query to find a Saga based on its identifier. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 streampublic SagaEntry(com.mongodb.DBObject dbSaga)
dbSaga
- The mongo Document containing the serialized sagaMethod Detail |
---|
public Saga getSaga(Serializer serializer)
serializer
- The serializer to decode the Saga
public com.mongodb.DBObject asDBObject()
public static com.mongodb.DBObject queryByIdentifier(String identifier)
identifier
- The identifier of the saga to find
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |