@Immutable public class VoidThriftCodec extends Object implements ThriftCodec<Void>
| Constructor and Description |
|---|
VoidThriftCodec() |
| Modifier and Type | Method and Description |
|---|---|
ThriftType |
getType()
The Thrift type this codec supports.
|
Void |
read(TProtocolReader protocol)
Always returns null without reading anything from the stream.
|
void |
write(Void value,
TProtocolWriter protocol)
Always returns without writing to the stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisNullpublic ThriftType getType()
ThriftCodecgetType in interface ThriftCodec<Void>public Void read(TProtocolReader protocol)
read in interface ThriftCodec<Void>protocol - the protocol to read frompublic void write(Void value, TProtocolWriter protocol)
write in interface ThriftCodec<Void>value - the value to write; not nullprotocol - the protocol to write toCopyright © 2012–2019. All rights reserved.