Package akka.persistence.typed.javadsl
Class EventWithMetadata<E>
- java.lang.Object
-
- akka.persistence.typed.javadsl.EventWithMetadata<E>
-
public final class EventWithMetadata<E> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description EventWithMetadata(E event, java.util.List<java.lang.Object> metadataEntries)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <E> EventWithMetadata<E>
create(E event, java.lang.Object metadata)
static <E> EventWithMetadata<E>
create(E event, java.util.List<java.lang.Object> metadataEntries)
E
event()
<M> java.util.Optional<M>
getMetadata(java.lang.Class<M> metadataType)
The metadata of a given type that is associated with the event.java.util.List<java.lang.Object>
metadataEntries()
-
-
-
Constructor Detail
-
EventWithMetadata
public EventWithMetadata(E event, java.util.List<java.lang.Object> metadataEntries)
-
-
Method Detail
-
create
public static <E> EventWithMetadata<E> create(E event, java.lang.Object metadata)
-
create
public static <E> EventWithMetadata<E> create(E event, java.util.List<java.lang.Object> metadataEntries)
-
event
public E event()
-
metadataEntries
public java.util.List<java.lang.Object> metadataEntries()
-
getMetadata
public <M> java.util.Optional<M> getMetadata(java.lang.Class<M> metadataType)
The metadata of a given type that is associated with the event.
-
-