Package akka.persistence.typed
Interface PublishedEvent
- 
public interface PublishedEventWhen 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.Objectevent()User eventjava.util.Optional<ReplicatedPublishedEventMetaData>getReplicatedMetaData()Java API: When emitted from an Replicated Event Sourcing actor this will contain the replica idPersistenceIdpersistenceId()scala.Option<ReplicatedPublishedEventMetaData>replicatedMetaData()Scala API: When emitted from an Replicated Event Sourcing actor this will contain the replica idlongsequenceNumber()scala.collection.immutable.Set<java.lang.String>tags()longtimestamp()PublishedEventwithoutTags()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. 
 - 
 
 -