|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Request
the request interface
| Method Summary | |
|---|---|
void |
addFieldName(java.lang.String fieldName)
add a fieldName,used in get, batchget operations |
Record |
addRecord()
add a record in the request |
int |
getCmd()
get the operation type |
int |
getMultiResponseFlag()
get multi-response flag |
int |
getResultFlag()
get the result flag |
int |
getSequence()
get the request sequence |
java.lang.String |
getTableName()
get the tableName |
byte[] |
getUserData()
get the user defined data |
void |
setCmd(int cmd)
set the operation type |
void |
setFieldName(java.util.List<java.lang.String> fieldNames)
set the value fieldNames once a batch,used in get, batchget operations |
void |
setMultiResponseFlag(int multiFlag)
set the multi-response flag |
void |
setResultFlag(int resultFlag)
For performance optimizing, you can set the resultFlag to decide what to return in the response. |
void |
setSequence(int seq)
set the request sequence |
void |
setTableName(java.lang.String tableName)
set the tableName |
void |
setUserData(byte[] data)
set the user defined data, which will be return all the same in the response |
java.lang.String |
toString()
visualize the content |
| Method Detail |
|---|
void setCmd(int cmd)
throws com.tencent.tcaplus.util.TCaplusException
com.tencent.tcaplus.util.TCaplusException
int getCmd()
throws com.tencent.tcaplus.util.TCaplusException
com.tencent.tcaplus.util.TCaplusException
void setTableName(java.lang.String tableName)
throws com.tencent.tcaplus.util.TCaplusException
String - tableName: the tableName, max size:256 bytes
com.tencent.tcaplus.util.TCaplusException
java.lang.String getTableName()
throws com.tencent.tcaplus.util.TCaplusException
com.tencent.tcaplus.util.TCaplusException
void setUserData(byte[] data)
throws com.tencent.tcaplus.util.TCaplusException
byte[] - data: the user defined data, max size: 1024 bytes
com.tencent.tcaplus.util.TCaplusException
byte[] getUserData()
throws com.tencent.tcaplus.util.TCaplusException
com.tencent.tcaplus.util.TCaplusExceptionvoid setSequence(int seq)
int - seq: the request sequenceint getSequence()
void setResultFlag(int resultFlag)
throws com.tencent.tcaplus.util.TCaplusException
int - resultFlag: result flag
com.tencent.tcaplus.util.TCaplusExceptionint getResultFlag()
Record addRecord()
throws com.tencent.tcaplus.util.TCaplusException
com.tencent.tcaplus.util.TCaplusException
void setFieldName(java.util.List<java.lang.String> fieldNames)
throws com.tencent.tcaplus.util.TCaplusException
List - com.tencent.tcaplus.util.TCaplusException
void addFieldName(java.lang.String fieldName)
throws com.tencent.tcaplus.util.TCaplusException
com.tencent.tcaplus.util.TCaplusException
void setMultiResponseFlag(int multiFlag)
throws com.tencent.tcaplus.util.TCaplusException
int - multiFlag: 1: true, 0:false
com.tencent.tcaplus.util.TCaplusExceptionused in the BatchGet operation
int getMultiResponseFlag()
throws com.tencent.tcaplus.util.TCaplusException
com.tencent.tcaplus.util.TCaplusExceptionused in the BatchGet operation
java.lang.String toString()
throws com.tencent.tcaplus.util.TCaplusException
toString in class java.lang.Objectcom.tencent.tcaplus.util.TCaplusException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||