public abstract class AbstractTextCommand extends Object implements TextCommand
TextCommandConstants.TextCommandType
Modifier and Type | Field and Description |
---|---|
protected TextCommandConstants.TextCommandType |
type |
CLIENT_ERROR, DELETED, END, ERROR, FLAG_ZERO, MONTH_SECONDS, NOT_FOUND, NOT_STORED, RETURN, RETURN_END, SERVER_ERROR, SPACE, STORED, VALUE_SPACE
Modifier | Constructor and Description |
---|---|
protected |
AbstractTextCommand(TextCommandConstants.TextCommandType type) |
Modifier and Type | Method and Description |
---|---|
long |
getRequestId() |
SocketTextReader |
getSocketTextReader() |
SocketTextWriter |
getSocketTextWriter() |
TextCommandConstants.TextCommandType |
getType() |
void |
init(SocketTextReader socketTextReader,
long requestId) |
void |
onEnqueue() |
boolean |
shouldReply() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
doRead, writeTo
protected final TextCommandConstants.TextCommandType type
protected AbstractTextCommand(TextCommandConstants.TextCommandType type)
public TextCommandConstants.TextCommandType getType()
getType
in interface TextCommand
public SocketTextReader getSocketTextReader()
getSocketTextReader
in interface TextCommand
public SocketTextWriter getSocketTextWriter()
getSocketTextWriter
in interface TextCommand
public long getRequestId()
getRequestId
in interface TextCommand
public void init(SocketTextReader socketTextReader, long requestId)
init
in interface TextCommand
public void onEnqueue()
onEnqueue
in interface SocketWritable
public boolean shouldReply()
shouldReply
in interface TextCommand
Copyright © 2013 Hazelcast, Inc.. All rights reserved.