public class StoreParas extends Object implements Serializable, com.caucho.hessian.io.External
Modifier and Type | Field and Description |
---|---|
static int |
H_LEN |
static int |
NO_ERROR |
static int |
O_LEN |
static int |
OBSOLETE |
static int |
STORE_EXCEPTION |
Constructor and Description |
---|
StoreParas() |
StoreParas(OpType opType,
voldemort.store.cachestore.Key key) |
StoreParas(OpType opType,
voldemort.store.cachestore.Key key,
voldemort.store.cachestore.Value value) |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode() |
voldemort.store.cachestore.Key |
getKey() |
OpType |
getOpType() |
voldemort.store.cachestore.Value |
getValue() |
boolean |
isRemove() |
static byte[] |
putInt(int k) |
static byte[] |
putLong(long k) |
static byte[] |
putShort(short k) |
void |
readExternal(com.caucho.hessian.io.Hessian2Input in)
using Hessian-SM serialize protocol
|
void |
setErrorCode(int errorCode) |
void |
setKey(voldemort.store.cachestore.Key key) |
void |
setOpType(OpType opType) |
void |
setRemove(byte remove) |
void |
setValue(voldemort.store.cachestore.Value value) |
byte[] |
toBytes()
use raw protocol without any dependency
|
static StoreParas |
toStoreParas(byte[] bytes)
use raw protocol without any dependency
|
byte[] |
valueToBytes(int len,
voldemort.store.cachestore.Value value)
use raw protocol without any dependency
|
void |
writeExternal(com.caucho.hessian.io.Hessian2Output out)
using Hessian-SM serialize protocol
|
public static final int NO_ERROR
public static final int OBSOLETE
public static final int STORE_EXCEPTION
public static final int H_LEN
public static final int O_LEN
public StoreParas()
public StoreParas(OpType opType, voldemort.store.cachestore.Key key, voldemort.store.cachestore.Value value)
public StoreParas(OpType opType, voldemort.store.cachestore.Key key)
public OpType getOpType()
public void setOpType(OpType opType)
public voldemort.store.cachestore.Key getKey()
public void setKey(voldemort.store.cachestore.Key key)
public voldemort.store.cachestore.Value getValue()
public void setValue(voldemort.store.cachestore.Value value)
public void setErrorCode(int errorCode)
public int getErrorCode()
public void setRemove(byte remove)
public boolean isRemove()
public byte[] toBytes()
public static byte[] putInt(int k)
public static byte[] putLong(long k)
public static byte[] putShort(short k)
public byte[] valueToBytes(int len, voldemort.store.cachestore.Value value)
len
- value
- public static StoreParas toStoreParas(byte[] bytes)
bytes
- serialize byte[] by toByte()public void writeExternal(com.caucho.hessian.io.Hessian2Output out) throws IOException
writeExternal
in interface com.caucho.hessian.io.External
out
- - Hessian2OutputIOException
public void readExternal(com.caucho.hessian.io.Hessian2Input in) throws IOException
readExternal
in interface com.caucho.hessian.io.External
in
- Hessian2InputIOException
Copyright © 2016. All rights reserved.