Class 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)  
      boolean canEqual​(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.Throwable
      copy$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 event
      java.lang.Throwable getFailure()
      Java API: the original cause
      int 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​(PersistRejected<Command,​Event> x$0)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface scala.Product

        productElementNames
    • 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:
        toString in class java.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:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • productElementName

        public java.lang.String productElementName​(int x$1)
        Specified by:
        productElementName in interface scala.Product
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object