net.neoremind.fountain.eventposition
类 BaiduGroupIdSyncPoint

java.lang.Object
  继承者 net.neoremind.fountain.eventposition.BaiduGroupIdSyncPoint
所有已实现的接口:
GroupIdSyncPoint, SyncPoint

public class BaiduGroupIdSyncPoint
extends Object
implements GroupIdSyncPoint

描述百度mysql分支的group id

作者:
hexiufeng, zhangxu

构造方法摘要
BaiduGroupIdSyncPoint()
          无参数构造方法
BaiduGroupIdSyncPoint(BigInteger groupId)
          有参数构造方法
 
方法摘要
 BigInteger getGroupId()
           
 boolean isSame(SyncPoint syncPoint)
          和指定的SyncPoint是否相同
 BigInteger offerGroupId()
          获取groupId
 void parse(byte[] buf)
          转换数组为同步点对象
 byte[] toBytes()
          convert 同步点对象为byte数组
 String toString()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

BaiduGroupIdSyncPoint

public BaiduGroupIdSyncPoint()
无参数构造方法


BaiduGroupIdSyncPoint

public BaiduGroupIdSyncPoint(BigInteger groupId)
有参数构造方法

参数:
groupId - 事务id
方法详细信息

toBytes

public byte[] toBytes()
从接口 SyncPoint 复制的描述
convert 同步点对象为byte数组

指定者:
接口 SyncPoint 中的 toBytes
返回:
byte array

parse

public void parse(byte[] buf)
从接口 SyncPoint 复制的描述
转换数组为同步点对象

指定者:
接口 SyncPoint 中的 parse
参数:
buf - 同步点数组

getGroupId

public BigInteger getGroupId()

toString

public String toString()
覆盖:
类 Object 中的 toString

offerGroupId

public BigInteger offerGroupId()
从接口 GroupIdSyncPoint 复制的描述
获取groupId

指定者:
接口 GroupIdSyncPoint 中的 offerGroupId
返回:
groupId

isSame

public boolean isSame(SyncPoint syncPoint)
从接口 GroupIdSyncPoint 复制的描述
和指定的SyncPoint是否相同

指定者:
接口 GroupIdSyncPoint 中的 isSame
参数:
syncPoint - SyncPoint
返回:
boolean


Copyright © 2016 neoremind. All rights reserved.