public class SocketTextReader extends Object implements TextCommandConstants, SocketReader
TextCommandConstants.TextCommandType
CLIENT_ERROR, DELETED, END, ERROR, FLAG_ZERO, MONTH_SECONDS, NOT_FOUND, NOT_STORED, RETURN, RETURN_END, SERVER_ERROR, SPACE, STORED, VALUE_SPACE
RECEIVE_SOCKET_BUFFER_SIZE
Constructor and Description |
---|
SocketTextReader(Connection connection) |
Modifier and Type | Method and Description |
---|---|
void |
closeConnection() |
SocketTextWriter |
getSocketTextWriter() |
void |
publishRequest(TextCommand command) |
void |
read(ByteBuffer inBuffer) |
void |
sendResponse(TextCommand command) |
static String |
toStringAndClear(ByteBuffer bb) |
public SocketTextReader(Connection connection)
public void sendResponse(TextCommand command)
public void read(ByteBuffer inBuffer)
read
in interface SocketReader
public static String toStringAndClear(ByteBuffer bb)
public void publishRequest(TextCommand command)
public SocketTextWriter getSocketTextWriter()
public void closeConnection()
Copyright © 2013 Hazelcast, Inc.. All rights reserved.