akka.persistence.journal.leveldb
Class Key

java.lang.Object
  extended by 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)
           
 
Method Summary
 int channelId()
           
static long counterFromBytes(byte[] bytes)
           
static Key counterKey(int persistenceId)
           
static byte[] counterToBytes(long ctr)
           
static Key deletionKey(int persistenceId, long sequenceNr)
           
static int id(Key key)
           
static Key idKey(int id)
           
static boolean isDeletionKey(Key key)
           
static boolean isIdKey(Key key)
           
static Key keyFromBytes(byte[] bytes)
           
static byte[] keyToBytes(Key key)
           
 int persistenceId()
           
 long sequenceNr()
           
 
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
 

Constructor Detail

Key

public Key(int persistenceId,
           long sequenceNr,
           int channelId)
Method Detail

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()