org.apache.mesos
Class Log.Position

java.lang.Object
  extended by org.apache.mesos.Log.Position
All Implemented Interfaces:
Comparable<Log.Position>
Enclosing class:
Log

public static class Log.Position
extends Object
implements Comparable<Log.Position>

An opaque identifier of a log entry's position within the log. Can be used to inidicate read ranges and truncation locations.


Method Summary
 int compareTo(Log.Position that)
           
 boolean equals(Object that)
           
 byte[] identity()
          Returns an "identity" of this position, useful for serializing to logs or across communication mediums.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

compareTo

public int compareTo(Log.Position that)
Specified by:
compareTo in interface Comparable<Log.Position>

equals

public boolean equals(Object that)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

identity

public byte[] identity()
Returns an "identity" of this position, useful for serializing to logs or across communication mediums.



Copyright © 2014 The Apache Software Foundation. All Rights Reserved.