-
- All Implemented Interfaces:
public final class ProcessingEventMailBox
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classProcessingEventMailBox.Companion
-
Field Summary
Fields Modifier and Type Field Description private final StringaggregateRootTypeNameprivate final StringaggregateRootId
-
Constructor Summary
Constructors Constructor Description ProcessingEventMailBox(String aggregateRootTypeName, String aggregateRootId, Action1<ProcessingEvent> handleProcessingEventAction)
-
Method Summary
Modifier and Type Method Description final StringgetAggregateRootTypeName()final StringgetAggregateRootId()final IntegergetTotalUnHandledMessageCount()final UnitsetNextExpectingEventVersion(Integer version)final EnqueueMessageResultenqueueMessage(ProcessingEvent processingEvent)final UnitcompleteRun()请求完成MailBox的单次运行,如果MailBox中还有剩余消息,则继续尝试运行下一次 final BooleanisInactive(Integer timeoutSeconds)final BooleantryUsing()final UnitexitUsing()final UnitmarkAsRemoved()final BooleanisRunning()final BooleanisRemoved()final IntegergetWaitingMessageCount()-
-
Constructor Detail
-
ProcessingEventMailBox
ProcessingEventMailBox(String aggregateRootTypeName, String aggregateRootId, Action1<ProcessingEvent> handleProcessingEventAction)
-
-
Method Detail
-
getAggregateRootTypeName
final String getAggregateRootTypeName()
-
getAggregateRootId
final String getAggregateRootId()
-
getTotalUnHandledMessageCount
final Integer getTotalUnHandledMessageCount()
-
setNextExpectingEventVersion
final Unit setNextExpectingEventVersion(Integer version)
-
enqueueMessage
final EnqueueMessageResult enqueueMessage(ProcessingEvent processingEvent)
-
completeRun
final Unit completeRun()
请求完成MailBox的单次运行,如果MailBox中还有剩余消息,则继续尝试运行下一次
-
isInactive
final Boolean isInactive(Integer timeoutSeconds)
-
markAsRemoved
final Unit markAsRemoved()
-
getWaitingMessageCount
final Integer getWaitingMessageCount()
-
-
-
-