Class LogPartition

java.lang.Object
org.nuxeo.lib.stream.log.LogPartition

public class LogPartition extends Object
A tuple to store a Log name and the partition index.
Since:
9.3
  • Field Details

    • name

      protected final Name name
    • partition

      protected final int partition
  • Constructor Details

    • LogPartition

      public LogPartition(Name name, int partition)
  • Method Details

    • of

      public static LogPartition of(Name name, int partition)
    • name

      public Name name()
      Returns the Log's name
    • partition

      public int partition()
      Returns the partition index.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object