Package akka.persistence.typed
Class PersistFailed<Command,Event>
- java.lang.Object
-
- akka.persistence.typed.PersistFailed<Command,Event>
-
- All Implemented Interfaces:
Signal
,EventSourcedSignal
,java.io.Serializable
,scala.Equals
,scala.Product
public final class PersistFailed<Command,Event> extends java.lang.Object implements EventSourcedSignal, scala.Product, java.io.Serializable
param: failure the original cause param: command the command that persisted the event, may be undefined if it is a replicated event- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PersistFailed(java.lang.Throwable failure, scala.Option<Command> command)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <Command,Event>
PersistFailed<Command,Event>apply(java.lang.Throwable failure, scala.Option<Command> command)
boolean
canEqual(java.lang.Object x$1)
scala.Option<Command>
command()
<Command,Event>
PersistFailed<Command,Event>copy(java.lang.Throwable failure, scala.Option<Command> command)
<Command,Event>
java.lang.Throwablecopy$default$1()
<Command,Event>
scala.Option<Command>copy$default$2()
boolean
equals(java.lang.Object x$1)
java.lang.Throwable
failure()
java.util.Optional<Command>
getCommand()
Java API: the command that persisted the event, may be undefined if it is a replicated eventjava.lang.Throwable
getFailure()
Java API: the original causeint
hashCode()
int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
java.lang.String
toString()
static <Command,Event>
scala.Option<scala.Tuple2<java.lang.Throwable,scala.Option<Command>>>unapply(PersistFailed<Command,Event> x$0)
-
-
-
Constructor Detail
-
PersistFailed
public PersistFailed(java.lang.Throwable failure, scala.Option<Command> command)
-
-
Method Detail
-
apply
public static <Command,Event> PersistFailed<Command,Event> apply(java.lang.Throwable failure, scala.Option<Command> command)
-
unapply
public static <Command,Event> scala.Option<scala.Tuple2<java.lang.Throwable,scala.Option<Command>>> unapply(PersistFailed<Command,Event> x$0)
-
failure
public java.lang.Throwable failure()
-
command
public scala.Option<Command> command()
-
getFailure
public java.lang.Throwable getFailure()
Java API: the original cause
-
getCommand
public java.util.Optional<Command> getCommand()
Java API: the command that persisted the event, may be undefined if it is a replicated event
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
copy
public <Command,Event> PersistFailed<Command,Event> copy(java.lang.Throwable failure, scala.Option<Command> command)
-
copy$default$1
public <Command,Event> java.lang.Throwable copy$default$1()
-
copy$default$2
public <Command,Event> scala.Option<Command> copy$default$2()
-
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
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
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
-
-