Package com.github.shyiko.mysql.binlog
Class GtidSet.Interval
- java.lang.Object
-
- com.github.shyiko.mysql.binlog.GtidSet.Interval
-
- All Implemented Interfaces:
Comparable<GtidSet.Interval>
- Enclosing class:
- GtidSet
public static final class GtidSet.Interval extends Object implements Comparable<GtidSet.Interval>
An interval of contiguous transaction identifiers.- See Also:
GtidSet
-
-
Constructor Summary
Constructors Constructor Description Interval(long start, long end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(GtidSet.Interval o)
boolean
equals(Object obj)
long
getEnd()
Get the ending transaction number in this interval.long
getStart()
Get the starting transaction number in this interval.int
hashCode()
boolean
isContainedWithin(GtidSet.Interval other)
Determine if this interval is completely within the supplied interval.String
toString()
-
-
-
Method Detail
-
getStart
public long getStart()
Get the starting transaction number in this interval.- Returns:
- this interval's first transaction number
-
getEnd
public long getEnd()
Get the ending transaction number in this interval.- Returns:
- this interval's last transaction number
-
isContainedWithin
public boolean isContainedWithin(GtidSet.Interval other)
Determine if this interval is completely within the supplied interval.
-
compareTo
public int compareTo(GtidSet.Interval o)
- Specified by:
compareTo
in interfaceComparable<GtidSet.Interval>
-
-