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 byteprotected byte[]protected ByteSequenceprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterMarshall(WireFormat wireFormat) voidafterUnmarshall(WireFormat wireFormat) voidbeforeMarshall(WireFormat wireFormat) voidbeforeUnmarshall(WireFormat wireFormat) voidgetCachedMarshalledForm(WireFormat wireFormat) intintbytegetFrom()The endpoint within the transport where this message came from.getHost()byte[]getMagic()longlonglonggetProperty(String name) getTo()The endpoint within the transport where this message is going to - null means all endpoints.intbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisValid()booleanprotected voidvoidsetCachedMarshalledForm(WireFormat wireFormat, ByteSequence data) voidsetCacheEnabled(boolean cacheEnabled) voidsetCacheSize(int cacheSize) voidsetCommandId(int value) voidvoidvoidsetMagic(byte[] magic) voidsetMarshalledProperties(ByteSequence marshalledProperties) voidsetMaxFrameSize(long maxFrameSize) voidsetMaxFrameSizeEnabled(boolean maxFrameSizeEnabled) voidsetMaxInactivityDuration(long maxInactivityDuration) voidsetMaxInactivityDurationInitalDelay(long maxInactivityDurationInitalDelay) voidsetPlatformDetails(String platformDetails) voidsetProperty(String name, Object value) voidsetProviderName(String providerName) voidsetProviderVersion(String providerVersion) voidsetResponseRequired(boolean responseRequired) voidsetSizePrefixDisabled(boolean prefixPacketSize) voidsetStackTraceEnabled(boolean stackTraceEnabled) voidsetTcpNoDelayEnabled(boolean tcpNoDelayEnabled) voidsetTightEncodingEnabled(boolean tightEncodingEnabled) voidvoidsetVersion(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:
getDataStructureTypein interfaceDataStructure- Returns:
- The type of the data structure
-
isWireFormatInfo
public boolean isWireFormatInfo()- Specified by:
isWireFormatInfoin interfaceCommand
-
isMarshallAware
public boolean isMarshallAware()- Specified by:
isMarshallAwarein 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:
beforeMarshallin interfaceMarshallAware- Throws:
IOException
-
afterMarshall
- Specified by:
afterMarshallin interfaceMarshallAware- Throws:
IOException
-
beforeUnmarshall
- Specified by:
beforeUnmarshallin interfaceMarshallAware- Throws:
IOException
-
afterUnmarshall
- Specified by:
afterUnmarshallin interfaceMarshallAware- Throws:
IOException
-
isValid
public boolean isValid() -
setResponseRequired
public void setResponseRequired(boolean responseRequired) - Specified by:
setResponseRequiredin 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:
setCommandIdin interfaceCommand
-
getCommandId
public int getCommandId()- Specified by:
getCommandIdin interfaceCommand- Returns:
- the unique ID of this request used to map responses to requests
-
isResponseRequired
public boolean isResponseRequired()- Specified by:
isResponseRequiredin interfaceCommand
-
isResponse
public boolean isResponse()- Specified by:
isResponsein interfaceCommand
-
isBrokerInfo
public boolean isBrokerInfo()- Specified by:
isBrokerInfoin interfaceCommand
-
isMessageDispatch
public boolean isMessageDispatch()- Specified by:
isMessageDispatchin interfaceCommand
-
isMessage
public boolean isMessage() -
isMessageAck
public boolean isMessageAck()- Specified by:
isMessageAckin interfaceCommand
-
isMessageDispatchNotification
public boolean isMessageDispatchNotification()- Specified by:
isMessageDispatchNotificationin interfaceCommand
-
isShutdownInfo
public boolean isShutdownInfo()- Specified by:
isShutdownInfoin interfaceCommand
-
isConnectionControl
public boolean isConnectionControl()- Specified by:
isConnectionControlin interfaceCommand
-
isConsumerControl
public boolean isConsumerControl()- Specified by:
isConsumerControlin interfaceCommand
-
setCachedMarshalledForm
-
getCachedMarshalledForm
-