public class GridRedisMessage extends Object implements GridClientMessage
| Modifier and Type | Field and Description |
|---|---|
static String |
CACHE_NAME_PREFIX
Cache name prefix.
|
static String |
DFLT_CACHE_NAME
Default cache name.
|
static byte |
RESP_REQ_FLAG
Request byte.
|
| Constructor and Description |
|---|
GridRedisMessage(int fullLen)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(String part)
Appends the specified part to the message.
|
List<String> |
aux() |
String |
aux(int idx) |
List<String> |
auxMKeys() |
@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.
|
GridRedisCommand |
command() |
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.
|
int |
fullLength() |
ByteBuffer |
getResponse()
Gets the response.
|
String |
key() |
int |
messageSize() |
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.
|
void |
setResponse(ByteBuffer response)
Sets the response.
|
String |
toString() |
public static final byte RESP_REQ_FLAG
public static final String CACHE_NAME_PREFIX
public static final String DFLT_CACHE_NAME
public GridRedisMessage(int fullLen)
fullLen - Length of the Redis message (command with parameters).public int fullLength()
public void append(String part)
part - Part to append.public void setResponse(ByteBuffer response)
response - Response.public ByteBuffer getResponse()
public int messageSize()
public GridRedisCommand command()
GridRedisCommand.public String key()
public String aux(int idx)
public List<String> auxMKeys()
@Nullable public @Nullable String cacheName()
public void cacheName(String cacheName)
cacheName - Cache name.public long requestId()
requestId in interface GridClientMessagepublic void requestId(long reqId)
requestId in interface GridClientMessagereqId - request ID.public UUID clientId()
clientId in interface GridClientMessagepublic void clientId(UUID id)
clientId in interface GridClientMessageid - Client identifier.public UUID destinationId()
destinationId in interface GridClientMessagepublic void destinationId(UUID id)
destinationId in interface GridClientMessageid - Client identifier.public byte[] sessionToken()
sessionToken in interface GridClientMessagepublic void sessionToken(byte[] sesTok)
sessionToken in interface GridClientMessagesesTok - Session token.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023