Package com.rabbitmq.client.impl
Class AMQContentHeader
- java.lang.Object
-
- com.rabbitmq.client.impl.AMQContentHeader
-
- All Implemented Interfaces:
ContentHeader,java.lang.Cloneable
- Direct Known Subclasses:
AMQBasicProperties
public abstract class AMQContentHeader extends java.lang.Object implements ContentHeader
Implementation of ContentHeader - specialized by autogenerated code in AMQP.java.
-
-
Field Summary
Fields Modifier and Type Field Description private longbodySizePrivate API - Called byAMQChannel.handleFrame(com.rabbitmq.client.impl.Frame).
-
Constructor Summary
Constructors Modifier Constructor Description protectedAMQContentHeader()protectedAMQContentHeader(java.io.DataInputStream in)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidappendPropertyDebugStringTo(java.lang.StringBuilder acc)Public API - A debugging utility - enable properties to be appended to a string buffer for use as trace messages.java.lang.Objectclone()longgetBodySize()FrametoFrame(int channelNumber, long bodySize)Private API - Called byAMQCommand.transmit(com.rabbitmq.client.impl.AMQChannel)java.lang.StringtoString()abstract voidwritePropertiesTo(ContentHeaderPropertyWriter writer)Private API - Autogenerated writer for this headerprivate voidwriteTo(java.io.DataOutputStream out, long bodySize)-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.rabbitmq.client.ContentHeader
getClassId, getClassName
-
-
-
-
Field Detail
-
bodySize
private long bodySize
Private API - Called byAMQChannel.handleFrame(com.rabbitmq.client.impl.Frame). Parses the header frame.
-
-
Method Detail
-
getBodySize
public long getBodySize()
-
writeTo
private void writeTo(java.io.DataOutputStream out, long bodySize) throws java.io.IOException- Throws:
java.io.IOException
-
writePropertiesTo
public abstract void writePropertiesTo(ContentHeaderPropertyWriter writer) throws java.io.IOException
Private API - Autogenerated writer for this header- Throws:
java.io.IOException
-
appendPropertyDebugStringTo
public void appendPropertyDebugStringTo(java.lang.StringBuilder acc)
Public API - A debugging utility - enable properties to be appended to a string buffer for use as trace messages.- Specified by:
appendPropertyDebugStringToin interfaceContentHeader- Parameters:
acc- a place to append the properties as a string
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toFrame
public Frame toFrame(int channelNumber, long bodySize) throws java.io.IOException
Private API - Called byAMQCommand.transmit(com.rabbitmq.client.impl.AMQChannel)- Throws:
java.io.IOException
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
-