Package zmq.io.coder
Class Decoder
- java.lang.Object
-
- zmq.io.coder.DecoderBase
-
- zmq.io.coder.Decoder
-
- All Implemented Interfaces:
IDecoder
public abstract class Decoder extends DecoderBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
Decoder.EightByteSizeReady
private class
Decoder.FlagsReady
private class
Decoder.MessageReady
private class
Decoder.OneByteSizeReady
-
Nested classes/interfaces inherited from interface zmq.io.coder.IDecoder
IDecoder.Step
-
-
Field Summary
Fields Modifier and Type Field Description private MsgAllocator
allocator
protected IDecoder.Step
eightByteSizeReady
protected IDecoder.Step
flagsReady
protected Msg
inProgress
protected long
maxmsgsize
protected IDecoder.Step
messageReady
protected IDecoder.Step
oneByteSizeReady
-
Constructor Summary
Constructors Constructor Description Decoder(Errno errno, int bufsize, long maxmsgsize, MsgAllocator allocator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Msg
allocate(int size)
protected IDecoder.Step.Result
eightByteSizeReady()
protected IDecoder.Step.Result
flagsReady()
protected IDecoder.Step.Result
messageIncomplete()
protected IDecoder.Step.Result
messageReady()
Msg
msg()
protected IDecoder.Step.Result
oneByteSizeReady()
protected IDecoder.Step.Result
sizeReady(long size)
-
-
-
Field Detail
-
maxmsgsize
protected final long maxmsgsize
-
inProgress
protected Msg inProgress
-
oneByteSizeReady
protected final IDecoder.Step oneByteSizeReady
-
eightByteSizeReady
protected final IDecoder.Step eightByteSizeReady
-
flagsReady
protected final IDecoder.Step flagsReady
-
messageReady
protected final IDecoder.Step messageReady
-
allocator
private final MsgAllocator allocator
-
-
Constructor Detail
-
Decoder
public Decoder(Errno errno, int bufsize, long maxmsgsize, MsgAllocator allocator)
-
-
Method Detail
-
sizeReady
protected final IDecoder.Step.Result sizeReady(long size)
-
allocate
protected Msg allocate(int size)
-
oneByteSizeReady
protected IDecoder.Step.Result oneByteSizeReady()
-
eightByteSizeReady
protected IDecoder.Step.Result eightByteSizeReady()
-
flagsReady
protected IDecoder.Step.Result flagsReady()
-
messageReady
protected IDecoder.Step.Result messageReady()
-
messageIncomplete
protected IDecoder.Step.Result messageIncomplete()
-
msg
public Msg msg()
-
-