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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleAttach(Attach attach, ProtonBuffer target, int channel, Encoder encoder) voidhandleBegin(Begin begin, ProtonBuffer target, int channel, Encoder encoder) voidhandleClose(Close close, ProtonBuffer target, int channel, Encoder encoder) voidhandleDetach(Detach detach, ProtonBuffer target, int channel, Encoder encoder) voidhandleDisposition(Disposition disposition, ProtonBuffer target, int channel, Encoder encoder) voidhandleEnd(End end, ProtonBuffer target, int channel, Encoder encoder) voidhandleFlow(Flow flow, ProtonBuffer target, int channel, Encoder encoder) voidhandleOpen(Open open, ProtonBuffer target, int channel, Encoder encoder) voidhandleTransfer(Transfer transfer, ProtonBuffer target, int channel, Encoder encoder)
-
Constructor Details
-
PerformativeEncoder
-
-
Method Details
-
getEncoder
-
getEncoderState
-
handleOpen
- Specified by:
handleOpenin interfacePerformative.PerformativeHandler<Encoder>
-
handleBegin
- Specified by:
handleBeginin interfacePerformative.PerformativeHandler<Encoder>
-
handleAttach
- Specified by:
handleAttachin interfacePerformative.PerformativeHandler<Encoder>
-
handleFlow
- Specified by:
handleFlowin interfacePerformative.PerformativeHandler<Encoder>
-
handleTransfer
- Specified by:
handleTransferin interfacePerformative.PerformativeHandler<Encoder>
-
handleDisposition
public void handleDisposition(Disposition disposition, ProtonBuffer target, int channel, Encoder encoder) - Specified by:
handleDispositionin interfacePerformative.PerformativeHandler<Encoder>
-
handleDetach
- Specified by:
handleDetachin interfacePerformative.PerformativeHandler<Encoder>
-
handleEnd
- Specified by:
handleEndin interfacePerformative.PerformativeHandler<Encoder>
-
handleClose
- Specified by:
handleClosein interfacePerformative.PerformativeHandler<Encoder>
-