com.taobao.metamorphosis.network
类 TransactionCommand

java.lang.Object
  继承者 com.taobao.metamorphosis.network.TransactionCommand
所有已实现的接口:
com.taobao.gecko.core.command.Command, com.taobao.gecko.core.command.CommandHeader, com.taobao.gecko.core.command.RequestCommand, MetaEncodeCommand

public class TransactionCommand
extends Object
implements com.taobao.gecko.core.command.RequestCommand, MetaEncodeCommand

事务命令,协议格式如下:
transaction transactionKey sessionId type [timeout] [uniqueQualifier] opaque\r\n

作者:
boyan

字段摘要
 
从接口 com.taobao.metamorphosis.network.MetaEncodeCommand 继承的字段
CRLF, GET_CMD, OFFSET_CMD, PUT_CMD, QUIT_CMD, RESULT_CMD, SPACE, STATS_CMD, SYNC_CMD, TRANS_CMD, VALUE_CMD, VERSION_CMD
 
构造方法摘要
TransactionCommand(TransactionInfo transactionInfo, Integer opaque)
           
 
方法摘要
 com.taobao.gecko.core.buffer.IoBuffer encode()
          编码协议
 boolean equals(Object obj)
           
 Integer getOpaque()
           
 com.taobao.gecko.core.command.CommandHeader getRequestHeader()
           
static long getSerialversionuid()
           
 TransactionInfo getTransactionInfo()
           
 int hashCode()
           
 void setTransactionInfo(TransactionInfo transactionInfo)
           
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

TransactionCommand

public TransactionCommand(TransactionInfo transactionInfo,
                          Integer opaque)
方法详细信息

getOpaque

public Integer getOpaque()
指定者:
接口 com.taobao.gecko.core.command.CommandHeader 中的 getOpaque

getRequestHeader

public com.taobao.gecko.core.command.CommandHeader getRequestHeader()
指定者:
接口 com.taobao.gecko.core.command.RequestCommand 中的 getRequestHeader

getTransactionInfo

public TransactionInfo getTransactionInfo()

setTransactionInfo

public void setTransactionInfo(TransactionInfo transactionInfo)

hashCode

public int hashCode()
覆盖:
Object 中的 hashCode

equals

public boolean equals(Object obj)
覆盖:
Object 中的 equals

encode

public com.taobao.gecko.core.buffer.IoBuffer encode()
从接口 MetaEncodeCommand 复制的描述
编码协议

指定者:
接口 MetaEncodeCommand 中的 encode
返回:
编码后的buffer

getSerialversionuid

public static long getSerialversionuid()


Copyright © 2010–2013. All rights reserved.