Package com.github.shyiko.mysql.binlog
Class GtidSet.UUIDSet
- java.lang.Object
-
- com.github.shyiko.mysql.binlog.GtidSet.UUIDSet
-
-
Constructor Summary
Constructors Constructor Description UUIDSet(String uuid, List<GtidSet.Interval> intervals)
UUIDSet(UUID uuid, List<GtidSet.Interval> intervals)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object obj)
List<GtidSet.Interval>
getIntervals()
Get the intervals of transaction numbers.UUID
getServerId()
String
getUUID()
Deprecated.int
hashCode()
boolean
isContainedWithin(GtidSet.UUIDSet other)
Determine if the set of transaction numbers from this server is completely within the set of transaction numbers from the set of transaction numbers in the supplied set.String
toString()
-
-
-
Constructor Detail
-
UUIDSet
public UUIDSet(String uuid, List<GtidSet.Interval> intervals)
-
UUIDSet
public UUIDSet(UUID uuid, List<GtidSet.Interval> intervals)
-
-
Method Detail
-
getUUID
@Deprecated public String getUUID()
Deprecated.Get the UUID for the server that generated the GTIDs.- Returns:
- the server's UUID; never null
-
getServerId
public UUID getServerId()
-
getIntervals
public List<GtidSet.Interval> getIntervals()
Get the intervals of transaction numbers.- Returns:
- the immutable transaction intervals; never null
-
isContainedWithin
public boolean isContainedWithin(GtidSet.UUIDSet other)
Determine if the set of transaction numbers from this server is completely within the set of transaction numbers from the set of transaction numbers in the supplied set.- Parameters:
other
- the set to compare with this set- Returns:
true
if this server's transaction numbers are equal to or a subset of the transaction numbers of the supplied set, or false otherwise
-
-