Package org.apache.qpid.protonj2.codec
Class SectionEncoder
- java.lang.Object
-
- org.apache.qpid.protonj2.codec.SectionEncoder
-
public final class SectionEncoder extends Object
AMQP Section type specific encoder that uses anyEncoder
to cache the specific type encoders for various section types and use them directly instead of looking them up via calls toEncoder.writeObject(org.apache.qpid.protonj2.buffer.ProtonBuffer, EncoderState, Object)
-
-
Constructor Summary
Constructors Constructor Description SectionEncoder(Encoder encoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(ProtonBuffer buffer, ApplicationProperties properties)
Writes the given section using the cached encoder for that section typesvoid
write(ProtonBuffer buffer, DeliveryAnnotations annotations)
Writes the given section using the cached encoder for that section typesvoid
write(ProtonBuffer buffer, Footer footer)
Writes the given section using the cached encoder for that section typesvoid
write(ProtonBuffer buffer, Header header)
Writes the given section using the cached encoder for that section typesvoid
write(ProtonBuffer buffer, MessageAnnotations annotations)
Writes the given section using the cached encoder for that section typesvoid
write(ProtonBuffer buffer, Properties properties)
Writes the given section using the cached encoder for that section typesvoid
write(ProtonBuffer buffer, Section<?> section)
Writes the given section using the cached encoder for that section types
-
-
-
Constructor Detail
-
SectionEncoder
public SectionEncoder(Encoder encoder)
-
-
Method Detail
-
write
public void write(ProtonBuffer buffer, Section<?> section)
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
public void write(ProtonBuffer buffer, ApplicationProperties properties)
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
public void write(ProtonBuffer buffer, MessageAnnotations annotations)
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
public void write(ProtonBuffer buffer, DeliveryAnnotations annotations)
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
public void write(ProtonBuffer buffer, Properties properties)
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
public void write(ProtonBuffer buffer, Header header)
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.
-
write
public void write(ProtonBuffer buffer, Footer footer)
Writes the given section using the cached encoder for that section types- Parameters:
buffer
- The buffer to write the encoding tofooter
- The section to write using the cached encoder.
-
-