akka.persistence.journal.leveldb
Class Key
java.lang.Object
akka.persistence.journal.leveldb.Key
- All Implemented Interfaces:
- java.io.Serializable, scala.Equals, scala.Product
public class Key
- extends java.lang.Object
- implements scala.Product, scala.Serializable
LevelDB key.
- See Also:
- Serialized Form
Constructor Summary |
Key(int persistenceId,
long sequenceNr,
int channelId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface scala.Product |
productArity, productElement, productIterator, productPrefix |
Methods inherited from interface scala.Equals |
canEqual, equals |
Key
public Key(int persistenceId,
long sequenceNr,
int channelId)
keyToBytes
public static byte[] keyToBytes(Key key)
keyFromBytes
public static Key keyFromBytes(byte[] bytes)
counterKey
public static Key counterKey(int persistenceId)
counterToBytes
public static byte[] counterToBytes(long ctr)
counterFromBytes
public static long counterFromBytes(byte[] bytes)
id
public static int id(Key key)
idKey
public static Key idKey(int id)
isIdKey
public static boolean isIdKey(Key key)
deletionKey
public static Key deletionKey(int persistenceId,
long sequenceNr)
isDeletionKey
public static boolean isDeletionKey(Key key)
persistenceId
public int persistenceId()
sequenceNr
public long sequenceNr()
channelId
public int channelId()