com.rbmhtechnology.eventuate.log.leveldb
Asynchronously and physically deletes events up to toSequenceNr
.
Asynchronously and physically deletes events up to toSequenceNr
. This operation completes when
physical deletion completed. A backend that does not support physical deletion should not override
this method.
Asynchronously batch-reads events whose destinationAggregateIds
contains the given aggregateId
.
Asynchronously batch-reads events whose destinationAggregateIds
contains the given aggregateId
. At most
max
events must be returned that are within the sequence number bounds fromSequenceNr
and toSequenceNr
.
sequence number to start reading (inclusive).
sequence number to stop reading (inclusive)
or earlier if max
events have already been read.
Asynchronously batch-reads events from the raw event log.
Asynchronously batch-reads events from the raw event log. At most max
events must be returned that are
within the sequence number bounds fromSequenceNr
and toSequenceNr
.
sequence number to start reading (inclusive).
sequence number to stop reading (inclusive)
or earlier if max
events have already been read.
Return the current DeletionMetadata
Return the current DeletionMetadata
Asynchronously reads the replication progress for given source logId
.
Asynchronously reads the replication progress for given source logId
.
Asynchronously reads all stored local replication progresses.
Asynchronously reads all stored local replication progresses.
Asynchronously recovers the event log clock during initialization.
Asynchronously recovers the event log clock during initialization.
Called after failed event log clock recovery.
Called after failed event log clock recovery.
Called after successful event log clock recovery.
Called after successful event log clock recovery.
Asynchronously batch-reads events from the raw event log.
Asynchronously batch-reads events from the raw event log. At most max
events must be returned that are
within the sequence number bounds fromSequenceNr
and toSequenceNr
and that pass the given filter
.
sequence number to start reading (inclusive).
sequence number to stop reading (inclusive)
or earlier if max
events have already been read.
Service context for asynchronous read operations.
Service context for asynchronous read operations.
Event log settings.
Event log settings.
Synchronously writes events
to the given partition
.
Synchronously writes events
to the given partition
. The partition is calculated from the configured
partitionSizeMax
and the current sequence number. Asynchronous writes will be supported in future versions.
This method may only throw an exception if it can guarantee that events
have not been written to the storage
backend. If this is not the case (e.g. after a timeout communicating with a remote storage backend) this method
must retry writing or give up by stopping the actor with context.stop(self)
. This is necessary to avoid that
events
are erroneously excluded from the event stream sent to event-sourced actors, views, writers and
processors, as they may later re-appear during recovery which would violate ordering/causality guarantees.
Implementations that potentially retry a write for a longer time should use a CircuitBreaker for protecting themselves against request overload.
Synchronously writes metadata for a Delete request.
Synchronously writes metadata for a Delete request. This marks events up to DeletionMetadata.toSequenceNr as deleted, i.e. they are not read on replay and indicates which remote logs must have replicated these events before they are allowed to be physically deleted locally.
Asynchronously writes the replication progress
for given source logId
.
Asynchronously writes the replication progress
for given source logId
.
An event log actor with LevelDB as storage backend. The directory containing the LevelDB files for this event log is named after the constructor parameters using the template "
prefix
-id
" and stored in a root directory defined by thelog.leveldb.dir
configuration.Please note:
prefix
andid
are currently not escaped when creating the directory name.