Package akka.persistence.typed
Class PersistRejected<Command,Event>
- java.lang.Object
-
- akka.persistence.typed.PersistRejected<Command,Event>
-
- All Implemented Interfaces:
Signal,EventSourcedSignal,java.io.Serializable,scala.Equals,scala.Product
public final class PersistRejected<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 PersistRejected(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>
PersistRejected<Command,Event>apply(java.lang.Throwable failure, scala.Option<Command> command)booleancanEqual(java.lang.Object x$1)scala.Option<Command>command()<Command,Event>
PersistRejected<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()booleanequals(java.lang.Object x$1)java.lang.Throwablefailure()java.util.Optional<Command>getCommand()Java API: the command that persisted the event, may be undefined if it is a replicated eventjava.lang.ThrowablegetFailure()Java API: the original causeinthashCode()intproductArity()java.lang.ObjectproductElement(int x$1)java.lang.StringproductElementName(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()java.lang.StringtoString()static <Command,Event>
scala.Option<scala.Tuple2<java.lang.Throwable,scala.Option<Command>>>unapply(PersistRejected<Command,Event> x$0)
-
-
-
Constructor Detail
-
PersistRejected
public PersistRejected(java.lang.Throwable failure, scala.Option<Command> command)
-
-
Method Detail
-
apply
public static <Command,Event> PersistRejected<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(PersistRejected<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:
toStringin classjava.lang.Object
-
copy
public <Command,Event> PersistRejected<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:
productPrefixin interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArityin interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElementin interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equalsin interfacescala.Equals- Overrides:
equalsin classjava.lang.Object
-
-