public interface ApplicationEventSource
Modifier and Type | Method and Description |
---|---|
Input<TransactionApplicationEvents,IOException> |
transactionsAfter(long afterTimestamp,
long maxTransactions)
Get list of event transactions after the given timestamp.
|
Input<TransactionApplicationEvents,IOException> |
transactionsBefore(long beforeTimestamp,
long maxTransactions)
Get list of event transactions before the given timestamp.
|
Input<TransactionApplicationEvents,IOException> transactionsAfter(long afterTimestamp, long maxTransactions)
If they are on the exact same timestamp, they will not be included.
The method uses the visitor pattern, so a visitor is sent in which is given each transaction, one at a time.
afterTimestamp
- timestamp of transactionsmaxTransactions
- maximum transactionsInput<TransactionApplicationEvents,IOException> transactionsBefore(long beforeTimestamp, long maxTransactions)
If they are on the exact same timestamp, they will not be included.
The method uses the visitor pattern, so a visitor is sent in which is given each transaction, one at a time.
The transactions are sent to the visitor with the latest transaction first, i.e. walking backwards in the stream.
beforeTimestamp
- timestamp of transactionsmaxTransactions
- maximum transactions