Package org.apache.qpid.protonj2.codec
Class SectionEncoder
java.lang.Object
org.apache.qpid.protonj2.codec.SectionEncoder
AMQP Section 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 TypeMethodDescriptionvoidwrite(ProtonBuffer buffer, ApplicationProperties properties) Writes the given section using the cached encoder for that section typesvoidwrite(ProtonBuffer buffer, DeliveryAnnotations annotations) Writes the given section using the cached encoder for that section typesvoidwrite(ProtonBuffer buffer, Footer footer) Writes the given section using the cached encoder for that section typesvoidwrite(ProtonBuffer buffer, Header header) Writes the given section using the cached encoder for that section typesvoidwrite(ProtonBuffer buffer, MessageAnnotations annotations) Writes the given section using the cached encoder for that section typesvoidwrite(ProtonBuffer buffer, Properties properties) Writes the given section using the cached encoder for that section typesvoidwrite(ProtonBuffer buffer, Section<?> section) Writes the given section using the cached encoder for that section types
-
Constructor Details
-
SectionEncoder
-
-
Method Details
-
write
Writes the given section using the cached encoder for that section types- Parameters:
buffer- The buffer to write the encoding tosection- The section to write using one of the cached encoders
-
write
Writes the given section using the cached encoder for that section types- Parameters:
buffer- The buffer to write the encoding toproperties- The section to write using the cached encoder.
-
write
Writes the given section using the cached encoder for that section types- Parameters:
buffer- The buffer to write the encoding toannotations- The section to write using the cached encoder.
-
write
Writes the given section using the cached encoder for that section types- Parameters:
buffer- The buffer to write the encoding toannotations- The section to write using the cached encoder.
-
write
Writes the given section using the cached encoder for that section types- Parameters:
buffer- The buffer to write the encoding toproperties- The section to write using the cached encoder.
-
write
Writes the given section using the cached encoder for that section types- Parameters:
buffer- The buffer to write the encoding toheader- The section to write using the cached encoder.
-