public abstract class Command<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Command.CommandFormat |
| Constructor and Description |
|---|
Command() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getCommandString() |
protected abstract Command.CommandFormat |
getFormat() |
protected ByteBuffer |
getRawCommand() |
protected abstract T |
parseResponse(String responseString) |
protected T |
readResponse(SocketChannel socketChannel) |
T |
send(InetSocketAddress server) |
public abstract String getCommandString()
public T send(InetSocketAddress server)
protected abstract Command.CommandFormat getFormat()
protected ByteBuffer getRawCommand()
protected T readResponse(SocketChannel socketChannel) throws IOException
IOExceptionCopyright © 2017. All rights reserved.