Package org.apache.activemq.command
Class WireFormatInfo
java.lang.Object
org.apache.activemq.command.WireFormatInfo
- All Implemented Interfaces:
Command
,DataStructure
,MarshallAware
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte
protected byte[]
protected ByteSequence
protected int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterMarshall
(WireFormat wireFormat) void
afterUnmarshall
(WireFormat wireFormat) void
beforeMarshall
(WireFormat wireFormat) void
beforeUnmarshall
(WireFormat wireFormat) void
getCachedMarshalledForm
(WireFormat wireFormat) int
int
byte
getFrom()
The endpoint within the transport where this message came from.getHost()
byte[]
getMagic()
long
long
long
getProperty
(String name) getTo()
The endpoint within the transport where this message is going to - null means all endpoints.int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isValid()
boolean
protected void
void
setCachedMarshalledForm
(WireFormat wireFormat, ByteSequence data) void
setCacheEnabled
(boolean cacheEnabled) void
setCacheSize
(int cacheSize) void
setCommandId
(int value) void
void
void
setMagic
(byte[] magic) void
setMarshalledProperties
(ByteSequence marshalledProperties) void
setMaxFrameSize
(long maxFrameSize) void
setMaxFrameSizeEnabled
(boolean maxFrameSizeEnabled) void
setMaxInactivityDuration
(long maxInactivityDuration) void
setMaxInactivityDurationInitalDelay
(long maxInactivityDurationInitalDelay) void
setPlatformDetails
(String platformDetails) void
setProperty
(String name, Object value) void
setProviderName
(String providerName) void
setProviderVersion
(String providerVersion) void
setResponseRequired
(boolean responseRequired) void
setSizePrefixDisabled
(boolean prefixPacketSize) void
setStackTraceEnabled
(boolean stackTraceEnabled) void
setTcpNoDelayEnabled
(boolean tcpNoDelayEnabled) void
setTightEncodingEnabled
(boolean tightEncodingEnabled) void
void
setVersion
(int version) toString()
visit
(CommandVisitor visitor)
-
Field Details
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE- See Also:
-
magic
protected byte[] magic -
version
protected int version -
marshalledProperties
-
properties
-
-
Constructor Details
-
WireFormatInfo
public WireFormatInfo()
-
-
Method Details
-
getDataStructureType
public byte getDataStructureType()- Specified by:
getDataStructureType
in interfaceDataStructure
- Returns:
- The type of the data structure
-
isWireFormatInfo
public boolean isWireFormatInfo()- Specified by:
isWireFormatInfo
in interfaceCommand
-
isMarshallAware
public boolean isMarshallAware()- Specified by:
isMarshallAware
in interfaceDataStructure
-
getMagic
public byte[] getMagic() -
setMagic
public void setMagic(byte[] magic) -
getVersion
public int getVersion() -
setVersion
public void setVersion(int version) -
getMarshalledProperties
-
setMarshalledProperties
-
getFrom
The endpoint within the transport where this message came from. -
setFrom
-
getTo
The endpoint within the transport where this message is going to - null means all endpoints. -
setTo
-
getProperty
- Throws:
IOException
-
getProperties
- Throws:
IOException
-
clearProperties
public void clearProperties() -
setProperty
- Throws:
IOException
-
lazyCreateProperties
- Throws:
IOException
-
beforeMarshall
- Specified by:
beforeMarshall
in interfaceMarshallAware
- Throws:
IOException
-
afterMarshall
- Specified by:
afterMarshall
in interfaceMarshallAware
- Throws:
IOException
-
beforeUnmarshall
- Specified by:
beforeUnmarshall
in interfaceMarshallAware
- Throws:
IOException
-
afterUnmarshall
- Specified by:
afterUnmarshall
in interfaceMarshallAware
- Throws:
IOException
-
isValid
public boolean isValid() -
setResponseRequired
public void setResponseRequired(boolean responseRequired) - Specified by:
setResponseRequired
in interfaceCommand
-
isCacheEnabled
- Throws:
IOException
-
setCacheEnabled
- Throws:
IOException
-
isStackTraceEnabled
- Throws:
IOException
-
setStackTraceEnabled
- Throws:
IOException
-
isTcpNoDelayEnabled
- Throws:
IOException
-
setTcpNoDelayEnabled
- Throws:
IOException
-
isSizePrefixDisabled
- Throws:
IOException
-
setSizePrefixDisabled
- Throws:
IOException
-
isTightEncodingEnabled
- Throws:
IOException
-
setTightEncodingEnabled
- Throws:
IOException
-
getHost
- Throws:
IOException
-
setHost
- Throws:
IOException
-
getMaxInactivityDuration
- Throws:
IOException
-
setMaxInactivityDuration
- Throws:
IOException
-
getMaxInactivityDurationInitalDelay
- Throws:
IOException
-
setMaxInactivityDurationInitalDelay
public void setMaxInactivityDurationInitalDelay(long maxInactivityDurationInitalDelay) throws IOException - Throws:
IOException
-
getMaxFrameSize
- Throws:
IOException
-
setMaxFrameSize
- Throws:
IOException
-
getCacheSize
- Throws:
IOException
-
setCacheSize
- Throws:
IOException
-
getProviderName
- Throws:
IOException
-
setProviderName
- Throws:
IOException
-
getProviderVersion
- Throws:
IOException
-
setProviderVersion
- Throws:
IOException
-
getPlatformDetails
- Throws:
IOException
-
setPlatformDetails
- Throws:
IOException
-
isMaxFrameSizeEnabled
- Throws:
IOException
-
setMaxFrameSizeEnabled
- Throws:
IOException
-
visit
-
toString
-
setCommandId
public void setCommandId(int value) - Specified by:
setCommandId
in interfaceCommand
-
getCommandId
public int getCommandId()- Specified by:
getCommandId
in interfaceCommand
- Returns:
- the unique ID of this request used to map responses to requests
-
isResponseRequired
public boolean isResponseRequired()- Specified by:
isResponseRequired
in interfaceCommand
-
isResponse
public boolean isResponse()- Specified by:
isResponse
in interfaceCommand
-
isBrokerInfo
public boolean isBrokerInfo()- Specified by:
isBrokerInfo
in interfaceCommand
-
isMessageDispatch
public boolean isMessageDispatch()- Specified by:
isMessageDispatch
in interfaceCommand
-
isMessage
public boolean isMessage() -
isMessageAck
public boolean isMessageAck()- Specified by:
isMessageAck
in interfaceCommand
-
isMessageDispatchNotification
public boolean isMessageDispatchNotification()- Specified by:
isMessageDispatchNotification
in interfaceCommand
-
isShutdownInfo
public boolean isShutdownInfo()- Specified by:
isShutdownInfo
in interfaceCommand
-
isConnectionControl
public boolean isConnectionControl()- Specified by:
isConnectionControl
in interfaceCommand
-
isConsumerControl
public boolean isConsumerControl()- Specified by:
isConsumerControl
in interfaceCommand
-
setCachedMarshalledForm
-
getCachedMarshalledForm
-