Package akka.persistence.typed
Interface PublishedEvent
-
public interface PublishedEvent
When using event publishing the events published to the system event stream will be in this form.Not for user extension
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
event()
User eventjava.util.Optional<ReplicatedPublishedEventMetaData>
getReplicatedMetaData()
Java API: When emitted from an Replicated Event Sourcing actor this will contain the replica idPersistenceId
persistenceId()
scala.Option<ReplicatedPublishedEventMetaData>
replicatedMetaData()
Scala API: When emitted from an Replicated Event Sourcing actor this will contain the replica idlong
sequenceNumber()
scala.collection.immutable.Set<java.lang.String>
tags()
long
timestamp()
PublishedEvent
withoutTags()
If the published event is tagged, return a new published event with the payload unwrapped and the tags dropped, if it is not tagged return the published event as is.
-
-
-
Method Detail
-
event
java.lang.Object event()
User event
-
getReplicatedMetaData
java.util.Optional<ReplicatedPublishedEventMetaData> getReplicatedMetaData()
Java API: When emitted from an Replicated Event Sourcing actor this will contain the replica id
-
persistenceId
PersistenceId persistenceId()
-
replicatedMetaData
scala.Option<ReplicatedPublishedEventMetaData> replicatedMetaData()
Scala API: When emitted from an Replicated Event Sourcing actor this will contain the replica id
-
sequenceNumber
long sequenceNumber()
-
tags
scala.collection.immutable.Set<java.lang.String> tags()
-
timestamp
long timestamp()
-
withoutTags
PublishedEvent withoutTags()
If the published event is tagged, return a new published event with the payload unwrapped and the tags dropped, if it is not tagged return the published event as is.
-
-