public abstract static class EtcdResponseDecoders.StringToObjectDecoder<T> extends java.lang.Object implements EtcdResponseDecoder<T>
| Constructor and Description |
|---|
EtcdResponseDecoders.StringToObjectDecoder() |
| Modifier and Type | Method and Description |
|---|---|
T |
decode(io.netty.handler.codec.http.HttpHeaders headers,
io.netty.buffer.ByteBuf content) |
protected abstract T |
newInstance(java.lang.String message) |
public EtcdResponseDecoders.StringToObjectDecoder()
public T decode(io.netty.handler.codec.http.HttpHeaders headers, io.netty.buffer.ByteBuf content) throws EtcdException, java.io.IOException
decode in interface EtcdResponseDecoder<T>headers - to decode withcontent - to decodeEtcdException - If etcd returns an exception from the serverjava.io.IOException - if content is faultyprotected abstract T newInstance(java.lang.String message)