|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object akka.persistence.Persistent
public abstract class Persistent
Persistent message.
Constructor Summary | |
---|---|
Persistent()
|
Method Summary | |
---|---|
static Persistent |
apply(java.lang.Object payload,
scala.Option<Persistent> currentPersistentMessage)
Creates a new persistent message, derived from an implicit current message. |
static Persistent |
create(java.lang.Object payload)
Java API: creates a new persistent message. |
static Persistent |
create(java.lang.Object payload,
Persistent currentPersistentMessage)
Java API: creates a new persistent message, derived from the specified current message. |
abstract java.lang.Object |
payload()
This persistent message's payload. |
abstract long |
sequenceNr()
This persistent message's sequence number. |
static scala.Option<scala.Tuple2<java.lang.Object,java.lang.Object>> |
unapply(Persistent persistent)
Persistent extractor. |
abstract Persistent |
withPayload(java.lang.Object payload)
Creates a new persistent message with the specified payload . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface akka.persistence.Resequenceable |
---|
sender |
Constructor Detail |
---|
public Persistent()
Method Detail |
---|
public static Persistent create(java.lang.Object payload)
payload
- payload of new persistent message.
public static Persistent create(java.lang.Object payload, Persistent currentPersistentMessage)
Processor
by calling getCurrentPersistentMessage()
.
payload
- payload of new persistent message.currentPersistentMessage
- current persistent message.
public static Persistent apply(java.lang.Object payload, scala.Option<Persistent> currentPersistentMessage)
Processor
, this is the optional current Persistent
message of that processor.
payload
- payload of the new persistent message.currentPersistentMessage
- optional current persistent message, defaults to None
.
public static scala.Option<scala.Tuple2<java.lang.Object,java.lang.Object>> unapply(Persistent persistent)
Persistent
extractor.
persistent
- (undocumented)
public abstract java.lang.Object payload()
payload
in interface Resequenceable
public abstract long sequenceNr()
public abstract Persistent withPayload(java.lang.Object payload)
payload
.
payload
- (undocumented)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |