public class GridRedisGetSetCommandHandler extends GridRedisRestCommandHandler
CACHE_NAME, hnd, log
Constructor and Description |
---|
GridRedisGetSetCommandHandler(IgniteLogger log,
GridRestProtocolHandler hnd)
Handler constructor.
|
Modifier and Type | Method and Description |
---|---|
GridRestRequest |
asRestRequest(GridRedisMessage msg)
Converts
GridRedisMessage to GridRestRequest . |
ByteBuffer |
makeResponse(GridRestResponse restRes,
List<String> params)
Prepares a response according to the request.
|
Collection<GridRedisCommand> |
supportedCommands() |
handleAsync, longValue
public GridRedisGetSetCommandHandler(IgniteLogger log, GridRestProtocolHandler hnd)
log
- Logger to use.hnd
- Rest handler.public Collection<GridRedisCommand> supportedCommands()
public GridRestRequest asRestRequest(GridRedisMessage msg) throws IgniteCheckedException
GridRedisMessage
to GridRestRequest
.asRestRequest
in class GridRedisRestCommandHandler
msg
- GridRedisMessage
GridRestRequest
IgniteCheckedException
- If fails.public ByteBuffer makeResponse(GridRestResponse restRes, List<String> params)
makeResponse
in class GridRedisRestCommandHandler
restRes
- REST response.params
- Auxiliary parameters.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017