ReplyValue¶
-
public class
ReplyValue¶ A data structure containing one of the replies to a query (see
ReplyHandler.handleReply(ReplyValue)).
Constructors¶
ReplyValue¶
-
protected
ReplyValue(int kind, byte[] srcid, long rsn, String rname, ByteBuffer data, DataInfo info)¶
Methods¶
getData¶
-
public ByteBuffer
getData()¶ Returns: the received data when ReplyValue.kindequalsKind.ZN_STORAGE_DATAorKind.ZN_EVAL_DATA.
getInfo¶
-
public DataInfo
getInfo()¶ Returns: some meta information about the received data when ReplyValue.kindequalsKind.ZN_STORAGE_DATAorKind.ZN_EVAL_DATA.
getRname¶
-
public String
getRname()¶ Returns: the resource name of the received data when ReplyValue.kindequalsKind.ZN_STORAGE_DATAorKind.ZN_EVAL_DATA.
getRsn¶
-
public long
getRsn()¶ Returns: the sequence number of the reply from the identified storage or eval when ReplyValue.kindequalsKind.ZN_STORAGE_DATA,Kind.ZN_STORAGE_FINAL,Kind.ZN_EVAL_DATAorKind.ZN_EVAL_FINAL.
getSrcId¶
-
public byte[]
getSrcId()¶ Returns: the unique identifier of the storage or eval that sent this reply when ReplyValue.kindequalsKind.ZN_STORAGE_DATA,Kind.ZN_STORAGE_FINAL,Kind.ZN_EVAL_DATAorKind.ZN_EVAL_FINAL.