@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(org.apache.thrift.protocol.TProtocol protocol)
Always returns null without reading anything from the stream.
|
void |
write(Void value,
org.apache.thrift.protocol.TProtocol protocol)
Always returns without writing to the stream.
|
public ThriftType getType()
ThriftCodecgetType in interface ThriftCodec<Void>public Void read(org.apache.thrift.protocol.TProtocol protocol) throws Exception
read in interface ThriftCodec<Void>protocol - the protocol to read fromException - if any problems occurred when reading or coercing the valuepublic void write(Void value, org.apache.thrift.protocol.TProtocol protocol) throws Exception
write in interface ThriftCodec<Void>value - the value to write; not nullprotocol - the protocol to write toException - if any problems occurred when writing or coercing the valueCopyright © 2012-2017. All Rights Reserved.