Package org.apache.qpid.protonj2.codec
Class PerformativeEncoder
java.lang.Object
org.apache.qpid.protonj2.codec.PerformativeEncoder
- All Implemented Interfaces:
Performative.PerformativeHandler<Encoder>
public final class PerformativeEncoder
extends Object
implements Performative.PerformativeHandler<Encoder>
AMQP Performative type specific encoder that uses any
Encoder
to
cache the specific type encoders for various section types and use them
directly instead of looking them up via calls to
Encoder.writeObject(org.apache.qpid.protonj2.buffer.ProtonBuffer, EncoderState, Object)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleAttach
(Attach attach, ProtonBuffer target, int channel, Encoder encoder) void
handleBegin
(Begin begin, ProtonBuffer target, int channel, Encoder encoder) void
handleClose
(Close close, ProtonBuffer target, int channel, Encoder encoder) void
handleDetach
(Detach detach, ProtonBuffer target, int channel, Encoder encoder) void
handleDisposition
(Disposition disposition, ProtonBuffer target, int channel, Encoder encoder) void
handleEnd
(End end, ProtonBuffer target, int channel, Encoder encoder) void
handleFlow
(Flow flow, ProtonBuffer target, int channel, Encoder encoder) void
handleOpen
(Open open, ProtonBuffer target, int channel, Encoder encoder) void
handleTransfer
(Transfer transfer, ProtonBuffer target, int channel, Encoder encoder)
-
Constructor Details
-
PerformativeEncoder
-
-
Method Details
-
getEncoder
-
getEncoderState
-
handleOpen
- Specified by:
handleOpen
in interfacePerformative.PerformativeHandler<Encoder>
-
handleBegin
- Specified by:
handleBegin
in interfacePerformative.PerformativeHandler<Encoder>
-
handleAttach
- Specified by:
handleAttach
in interfacePerformative.PerformativeHandler<Encoder>
-
handleFlow
- Specified by:
handleFlow
in interfacePerformative.PerformativeHandler<Encoder>
-
handleTransfer
- Specified by:
handleTransfer
in interfacePerformative.PerformativeHandler<Encoder>
-
handleDisposition
public void handleDisposition(Disposition disposition, ProtonBuffer target, int channel, Encoder encoder) - Specified by:
handleDisposition
in interfacePerformative.PerformativeHandler<Encoder>
-
handleDetach
- Specified by:
handleDetach
in interfacePerformative.PerformativeHandler<Encoder>
-
handleEnd
- Specified by:
handleEnd
in interfacePerformative.PerformativeHandler<Encoder>
-
handleClose
- Specified by:
handleClose
in interfacePerformative.PerformativeHandler<Encoder>
-