me.cmoz.grizzly.protobuf
Class Varint32ProtobufFilter
java.lang.Object
org.glassfish.grizzly.filterchain.BaseFilter
org.glassfish.grizzly.filterchain.AbstractCodecFilter<org.glassfish.grizzly.Buffer,com.google.protobuf.MessageLite>
me.cmoz.grizzly.protobuf.Varint32ProtobufFilter
- All Implemented Interfaces:
- org.glassfish.grizzly.Codec<org.glassfish.grizzly.Buffer,com.google.protobuf.MessageLite>, org.glassfish.grizzly.filterchain.CodecFilter<org.glassfish.grizzly.Buffer,com.google.protobuf.MessageLite>, org.glassfish.grizzly.filterchain.Filter
public class Varint32ProtobufFilter
- extends org.glassfish.grizzly.filterchain.AbstractCodecFilter<org.glassfish.grizzly.Buffer,com.google.protobuf.MessageLite>
A filter for Google's Protocol Buffers serialization format that uses a
Varint32 encoding to store the length of the encoded message.
|
Constructor Summary |
Varint32ProtobufFilter(com.google.protobuf.MessageLite prototype)
A Protocol Buffers filter that uses a Varint32 encoding for the
message length. |
Varint32ProtobufFilter(com.google.protobuf.MessageLite prototype,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
A Protocol Buffers filter that uses a Varint32 encoding for the
message length. |
| Methods inherited from class org.glassfish.grizzly.filterchain.AbstractCodecFilter |
getDecoder, getEncoder, handleRead, handleWrite |
| Methods inherited from class org.glassfish.grizzly.filterchain.BaseFilter |
createContext, exceptionOccurred, handleAccept, handleClose, handleConnect, handleEvent, onAdded, onFilterChainChanged, onRemoved |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.glassfish.grizzly.filterchain.Filter |
exceptionOccurred, handleAccept, handleClose, handleConnect, handleEvent, onAdded, onFilterChainChanged, onRemoved |
Varint32ProtobufFilter
public Varint32ProtobufFilter(@NonNull
com.google.protobuf.MessageLite prototype)
- A Protocol Buffers filter that uses a
Varint32 encoding for the
message length.
- Parameters:
prototype - The base protocol buffers serialization unit.
Varint32ProtobufFilter
public Varint32ProtobufFilter(@NonNull
com.google.protobuf.MessageLite prototype,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- A Protocol Buffers filter that uses a
Varint32 encoding for the
message length.
- Parameters:
prototype - The base protocol buffers serialization unit.extensionRegistry - A table of known extensions, searchable by name
or field number, may be null.