Package org.nuxeo.lib.stream.log
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
-
-
Constructor Summary
Constructors Constructor Description LogPartition(Name name, int partition)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
Name
name()
Returns the Log's namestatic LogPartition
of(Name name, int partition)
int
partition()
Returns the partition index.String
toString()
-
-
-
Field Detail
-
name
protected final Name name
-
partition
protected final int partition
-
-
Constructor Detail
-
LogPartition
public LogPartition(Name name, int partition)
-
-
Method Detail
-
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.
-
-