Package akka.persistence.typed.internal
Class Persist<Event,State>
- java.lang.Object
-
- akka.persistence.typed.javadsl.Effect<Event,State>
-
- akka.persistence.typed.javadsl.ReplyEffect<Event,State>
-
- akka.persistence.typed.internal.EffectImpl<Event,State>
-
- akka.persistence.typed.internal.Persist<Event,State>
-
- All Implemented Interfaces:
Effect<Event,State>
,ReplyEffect<Event,State>
,java.io.Serializable
,scala.Equals
,scala.Product
,scala.Serializable
public class Persist<Event,State> extends EffectImpl<Event,State> implements scala.Product, scala.Serializable
INTERNAL API- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EffectImpl<Event,State>
andThen(SideEffect<State> chainedEffect)
static Effect<Event,State>
andThen(scala.collection.immutable.Seq<SideEffect<State>> chainedEffects)
static <Event,State>
Persist<Event,State>apply(Event event)
boolean
canEqual(java.lang.Object x$1)
<Event,State>
Persist<Event,State>copy(Event event)
<Event,State>
Eventcopy$default$1()
boolean
equals(java.lang.Object x$1)
Event
event()
scala.collection.immutable.List<Event>
events()
int
hashCode()
int
productArity()
java.lang.Object
productElement(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
static EffectImpl<Event,State>
thenNoReply()
static <ReplyMessage>
ReplyEffect<Event,State>thenReply(ExpectingReply<ReplyMessage> cmd, Function<State,ReplyMessage> replyWithMessage)
static <ReplyMessage>
ReplyEffect<Event,State>thenReply(ExpectingReply<ReplyMessage> cmd, scala.Function1<State,ReplyMessage> replyWithMessage)
static Effect<Event,State>
thenRun(Effect callback)
static <NewState extends State>
Effect<Event,State>thenRun(Procedure<NewState> callback)
static Effect<Event,State>
thenRun(scala.Function1<State,scala.runtime.BoxedUnit> callback)
static EffectImpl<Event,State>
thenStop()
static EffectImpl<Event,State>
thenUnstashAll()
java.lang.String
toString()
static <Event,State>
scala.Option<Event>unapply(Persist<Event,State> x$0)
-
Methods inherited from class akka.persistence.typed.internal.EffectImpl
andThen, thenNoReply, thenStop, thenUnstashAll
-
-
-
-
Constructor Detail
-
Persist
public Persist(Event event)
-
-
Method Detail
-
apply
public static <Event,State> Persist<Event,State> apply(Event event)
-
unapply
public static <Event,State> scala.Option<Event> unapply(Persist<Event,State> x$0)
-
thenRun
public static final <NewState extends State> Effect<Event,State> thenRun(Procedure<NewState> callback)
-
thenReply
public static <ReplyMessage> ReplyEffect<Event,State> thenReply(ExpectingReply<ReplyMessage> cmd, Function<State,ReplyMessage> replyWithMessage)
-
thenRun
public static final Effect<Event,State> thenRun(scala.Function1<State,scala.runtime.BoxedUnit> callback)
-
andThen
public static final Effect<Event,State> andThen(scala.collection.immutable.Seq<SideEffect<State>> chainedEffects)
-
thenReply
public static <ReplyMessage> ReplyEffect<Event,State> thenReply(ExpectingReply<ReplyMessage> cmd, scala.Function1<State,ReplyMessage> replyWithMessage)
-
andThen
public static EffectImpl<Event,State> andThen(SideEffect<State> chainedEffect)
-
thenUnstashAll
public static EffectImpl<Event,State> thenUnstashAll()
-
thenNoReply
public static EffectImpl<Event,State> thenNoReply()
-
thenStop
public static EffectImpl<Event,State> thenStop()
-
event
public Event event()
-
events
public scala.collection.immutable.List<Event> events()
-
copy
public <Event,State> Persist<Event,State> copy(Event event)
-
copy$default$1
public <Event,State> Event copy$default$1()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-