akka.persistence
Class Persistent$

java.lang.Object
  extended by akka.persistence.Persistent$

public class Persistent$
extends java.lang.Object


Field Summary
static Persistent$ MODULE$
          Static reference to the singleton instance of this Scala object.
 
Constructor Summary
Persistent$()
           
 
Method Summary
 Persistent apply(java.lang.Object payload, scala.Option<Persistent> currentPersistentMessage)
          Creates a new persistent message, derived from an implicit current message.
 Persistent create(java.lang.Object payload)
          Java API: creates a new persistent message.
 Persistent create(java.lang.Object payload, Persistent currentPersistentMessage)
          Java API: creates a new persistent message, derived from the specified current message.
 scala.Option<scala.Tuple2<java.lang.Object,java.lang.Object>> unapply(Persistent persistent)
          Persistent extractor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODULE$

public static final Persistent$ MODULE$
Static reference to the singleton instance of this Scala object.

Constructor Detail

Persistent$

public Persistent$()
Method Detail

create

public Persistent create(java.lang.Object payload)
Java API: creates a new persistent message. Must only be used outside processors.

Parameters:
payload - payload of new persistent message.

create

public Persistent create(java.lang.Object payload,
                         Persistent currentPersistentMessage)
Java API: creates a new persistent message, derived from the specified current message. The current message can be obtained inside a Processor by calling getCurrentPersistentMessage().

Parameters:
payload - payload of new persistent message.
currentPersistentMessage - current persistent message.

apply

public Persistent apply(java.lang.Object payload,
                        scala.Option<Persistent> currentPersistentMessage)
Creates a new persistent message, derived from an implicit current message. When used inside a Processor, this is the optional current Persistent message of that processor.

Parameters:
payload - payload of the new persistent message.
currentPersistentMessage - optional current persistent message, defaults to None.

unapply

public scala.Option<scala.Tuple2<java.lang.Object,java.lang.Object>> unapply(Persistent persistent)
Persistent extractor.