public class RedisResponseReader extends Object implements AsyncHandler<Integer>
Constructor and Description |
---|
RedisResponseReader(AsyncSocketTransport pcon)
Creates a RedisResponseReader.
|
Modifier and Type | Method and Description |
---|---|
void |
completed(Integer result,
Throwable e)
This method is an internal method made public as a consequence of implementing AsyncHandler.
|
RedisRawResponse |
getResponse()
Gets the response which is saved after it is read and parsed.
|
RedisRawResponse |
readResponse(AsyncHandler<RedisRawResponse> presponseHandler)
Reads the response from the Redis Server.
|
public RedisResponseReader(AsyncSocketTransport pcon)
pcon
- AsyncSocketTransport to read the response frompublic RedisRawResponse readResponse(AsyncHandler<RedisRawResponse> presponseHandler)
presponseHandler
- Response Handler to use in case the response is not immediately availablepublic void completed(Integer result, Throwable e)
completed
in interface AsyncHandler<Integer>
result
- Result of the task. null indicates an error.e
- Exception in case of an error.public RedisRawResponse getResponse()
Copyright © 2013- Suresh Mahalingam. All Rights Reserved.