Class GridRedisSetCommandHandler
- java.lang.Object
-
- org.apache.ignite.internal.processors.rest.handlers.redis.GridRedisRestCommandHandler
-
- org.apache.ignite.internal.processors.rest.handlers.redis.string.GridRedisSetCommandHandler
-
- All Implemented Interfaces:
GridRedisCommandHandler
public class GridRedisSetCommandHandler extends GridRedisRestCommandHandler
Redis SET command handler.No key expiration is currently supported.
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.rest.handlers.redis.GridRedisRestCommandHandler
ctx, hnd, log
-
-
Constructor Summary
Constructors Constructor Description GridRedisSetCommandHandler(IgniteLogger log, GridRestProtocolHandler hnd, GridKernalContext ctx)Handler constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GridRestRequestasRestRequest(GridRedisMessage msg)ConvertsGridRedisMessagetoGridRestRequest.ByteBuffermakeResponse(GridRestResponse restRes, List<String> params)Prepares a response according to the request.Collection<GridRedisCommand>supportedCommands()-
Methods inherited from class org.apache.ignite.internal.processors.rest.handlers.redis.GridRedisRestCommandHandler
handleAsync, longValue
-
-
-
-
Constructor Detail
-
GridRedisSetCommandHandler
public GridRedisSetCommandHandler(IgniteLogger log, GridRestProtocolHandler hnd, GridKernalContext ctx)
Handler constructor.- Parameters:
log- Logger to use.hnd- Rest handler.ctx- Kernal context.
-
-
Method Detail
-
supportedCommands
public Collection<GridRedisCommand> supportedCommands()
- Returns:
- Collection of supported commands.
-
asRestRequest
public GridRestRequest asRestRequest(GridRedisMessage msg) throws IgniteCheckedException
ConvertsGridRedisMessagetoGridRestRequest.- Specified by:
asRestRequestin classGridRedisRestCommandHandler- Parameters:
msg-GridRedisMessage- Returns:
GridRestRequest- Throws:
IgniteCheckedException- If fails.
-
makeResponse
public ByteBuffer makeResponse(GridRestResponse restRes, List<String> params)
Prepares a response according to the request.- Specified by:
makeResponsein classGridRedisRestCommandHandler- Parameters:
restRes- REST response.params- Auxiliary parameters.- Returns:
- Response for the command.
-
-