This project has retired. For details please refer to its Attic page.
Log.Position
JavaScript is disabled on your browser.
Skip navigation links
org.apache.mesos

Class Log.Position

  • All Implemented Interfaces:
    java.lang.Comparable<Log.Position>
    Enclosing class:
    Log


    public static class Log.Position
    extends java.lang.Object
    implements java.lang.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.
    • Constructor Summary

      Constructors
      Constructor and Description
      Position (long value)
      Creates a position identified by an integral value.
    • Method Summary

      All Methods
      Modifier and Type Method and Description
      int compareTo (Log.Position that)
      boolean equals (java.lang.Object that)
      byte[] identity ()
      Returns an "identity" of this position, useful for serializing to logs or across communication mediums.
      java.lang.String toString ()
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Position

        public Position(long value)
        Creates a position identified by an integral value.

        Positions are typically only created by the log implementation. Log users should only ever need to call this constructor in unit tests.

        Parameters:
        value - The marker for this position in the log.
    • Method Detail

      • compareTo

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

        public boolean equals(java.lang.Object that)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • identity

        public byte[] identity()
        Returns an "identity" of this position, useful for serializing to logs or across communication mediums.
        Returns:
        The identity in bytes.
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /