org.apache.mesos
Class Log.Position
java.lang.Object
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.
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.