|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.mongo3.saga.repository.SagaEntry
public class SagaEntry
Java representation of sagas stored in a mongo instance
Constructor Summary | |
---|---|
SagaEntry(org.bson.Document 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 | |
---|---|
org.bson.Document |
asDocument()
Returns the Mongo Document representing the Saga provided in this entry. |
Saga |
getSaga(Serializer serializer)
Returns the Saga instance stored in this entry. |
static org.bson.conversions.Bson |
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(org.bson.Document dbSaga)
dbSaga
- The mongo Document containing the serialized sagaMethod Detail |
---|
public Saga getSaga(Serializer serializer)
serializer
- The serializer to decode the Saga
public org.bson.Document asDocument()
public static org.bson.conversions.Bson 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 |