public class GridMemcachedMessage extends Object implements GridClientMessage
Modifier and Type | Field and Description |
---|---|
static int |
BOOLEAN_FLAG
Boolean flag.
|
static int |
BYTE_ARR_FLAG
Byte array flag.
|
static int |
BYTE_FLAG
Byte flag.
|
static int |
DATE_FLAG
Date flag.
|
static int |
DOUBLE_FLAG
Double flag.
|
static int |
FAILURE
Failure status.
|
static byte |
FLAGS_LENGTH
Flags length.
|
static int |
FLOAT_FLAG
Float flag.
|
static int |
HDR_LEN
Header length.
|
static byte |
IGNITE_HANDSHAKE_FLAG
Client handshake flag.
|
static byte |
IGNITE_HANDSHAKE_RES_FLAG
Client handshake flag.
|
static byte |
IGNITE_REQ_FLAG
Custom client request flag.
|
static int |
INT_FLAG
Integer flag.
|
static int |
KEY_NOT_FOUND
Key not found status.
|
static int |
LONG_FLAG
Long flag.
|
static byte |
MEMCACHE_REQ_FLAG
Memcache client request flag.
|
static byte |
MEMCACHE_RES_FLAG
Response flag.
|
static int |
SERIALIZED_FLAG
Serialized flag.
|
static int |
SUCCESS
Success status.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addData() |
boolean |
addFlags() |
@Nullable String |
cacheName() |
void |
cacheName(String cacheName) |
UUID |
clientId()
Gets client identifier from which this request comes.
|
void |
clientId(UUID id)
Sets client identifier from which this request comes.
|
@Nullable Long |
delta() |
void |
delta(long delta) |
UUID |
destinationId()
Gets identifier of the node where this message should be processed.
|
void |
destinationId(UUID id)
Sets identifier of the node where this message should be eventually delivered.
|
@Nullable Long |
expiration() |
void |
expiration(long expiration) |
byte[] |
extras() |
void |
extras(byte[] extras) |
byte |
extrasLength() |
void |
extrasLength(byte extrasLen) |
boolean |
hasDelta() |
boolean |
hasExpiration() |
boolean |
hasFlags() |
boolean |
hasInitial() |
@Nullable Long |
initial() |
void |
initial(long init) |
Object |
key() |
void |
key(Object key) |
short |
keyLength() |
void |
keyLength(short keyLen) |
byte[] |
opaque() |
void |
opaque(byte[] opaque) |
byte |
operationCode() |
void |
operationCode(byte opCode) |
byte |
requestFlag() |
void |
requestFlag(byte reqFlag) |
long |
requestId()
This method is used to match request and response messages.
|
void |
requestId(long reqId)
Sets request id for outgoing packets.
|
byte[] |
sessionToken()
Gets client session token.
|
void |
sessionToken(byte[] sesTok)
Sets client session token.
|
int |
status() |
void |
status(int status) |
String |
toString() |
int |
totalLength() |
void |
totalLength(int totalLen) |
Object |
value() |
void |
value(Object val) |
public static final int HDR_LEN
public static final byte FLAGS_LENGTH
public static final byte MEMCACHE_REQ_FLAG
public static final byte MEMCACHE_RES_FLAG
public static final byte IGNITE_REQ_FLAG
public static final byte IGNITE_HANDSHAKE_FLAG
public static final byte IGNITE_HANDSHAKE_RES_FLAG
public static final int SUCCESS
public static final int KEY_NOT_FOUND
public static final int FAILURE
public static final int SERIALIZED_FLAG
public static final int BOOLEAN_FLAG
public static final int INT_FLAG
public static final int LONG_FLAG
public static final int DATE_FLAG
public static final int BYTE_FLAG
public static final int FLOAT_FLAG
public static final int DOUBLE_FLAG
public static final int BYTE_ARR_FLAG
public long requestId()
requestId
in interface GridClientMessage
public void requestId(long reqId)
requestId
in interface GridClientMessage
reqId
- request ID.public UUID clientId()
clientId
in interface GridClientMessage
public void clientId(UUID id)
clientId
in interface GridClientMessage
id
- Client identifier.public UUID destinationId()
destinationId
in interface GridClientMessage
public void destinationId(UUID id)
destinationId
in interface GridClientMessage
id
- Client identifier.public byte[] sessionToken()
sessionToken
in interface GridClientMessage
public void sessionToken(byte[] sesTok)
sessionToken
in interface GridClientMessage
sesTok
- Session token.public byte requestFlag()
public void requestFlag(byte reqFlag)
reqFlag
- Request flag.public byte operationCode()
public void operationCode(byte opCode)
opCode
- Operation code.public short keyLength()
public void keyLength(short keyLen)
keyLen
- Key length.public byte extrasLength()
public void extrasLength(byte extrasLen)
extrasLen
- Extras length.public int status()
public void status(int status)
status
- Status.public int totalLength()
public void totalLength(int totalLen)
totalLen
- Total length.public byte[] opaque()
public void opaque(byte[] opaque)
opaque
- Opaque.public byte[] extras()
public void extras(byte[] extras)
extras
- Extras.public Object key()
public void key(Object key)
key
- Key.public Object value()
public void value(Object val)
val
- Value.@Nullable public @Nullable Long expiration()
public void expiration(long expiration)
expiration
- Expiration.@Nullable public @Nullable Long delta()
public void delta(long delta)
delta
- Delta for increment and decrement commands.@Nullable public @Nullable Long initial()
public void initial(long init)
init
- Initial value for increment and decrement commands.@Nullable public @Nullable String cacheName()
public void cacheName(String cacheName)
cacheName
- Cache name.public boolean hasFlags()
public boolean hasExpiration()
public boolean hasDelta()
public boolean hasInitial()
public boolean addData()
public boolean addFlags()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021