public abstract class AsciiRequest<T> extends Request<T>
| Modifier and Type | Field and Description |
|---|---|
protected static byte[] |
NEWLINE_BYTES |
protected static byte |
SPACE_BYTES |
| Modifier | Constructor and Description |
|---|---|
protected |
AsciiRequest(byte[] key) |
protected |
AsciiRequest(String key,
Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
handle(AsciiResponse response) |
void |
handle(Object response) |
encodeKeys, fail, getKey, getOpaque, succeed, toBuffer, toBuffer, writeRequestprotected static final byte[] NEWLINE_BYTES
protected static final byte SPACE_BYTES
public void handle(Object response) throws IOException
handle in class Request<T>IOExceptionprotected abstract void handle(AsciiResponse response) throws IOException
IOExceptionCopyright © 2015 Spotify AB. All Rights Reserved.