public class WireFormatInfo extends Object implements Command, MarshallAware
| Modifier and Type | Field and Description |
|---|---|
static byte |
DATA_STRUCTURE_TYPE |
protected byte[] |
magic |
protected ByteSequence |
marshalledProperties |
protected Map<String,Object> |
properties |
protected int |
version |
| Constructor and Description |
|---|
WireFormatInfo() |
public static final byte DATA_STRUCTURE_TYPE
protected byte[] magic
protected int version
protected ByteSequence marshalledProperties
protected transient Map<String,Object> properties
public WireFormatInfo()
public byte getDataStructureType()
getDataStructureType in interface DataStructurepublic boolean isWireFormatInfo()
isWireFormatInfo in interface Commandpublic boolean isMarshallAware()
isMarshallAware in interface DataStructurepublic byte[] getMagic()
public void setMagic(byte[] magic)
public int getVersion()
public void setVersion(int version)
public ByteSequence getMarshalledProperties()
public void setMarshalledProperties(ByteSequence marshalledProperties)
public Endpoint getTo()
public Object getProperty(String name) throws IOException
IOExceptionpublic Map<String,Object> getProperties() throws IOException
IOExceptionpublic void clearProperties()
public void setProperty(String name, Object value) throws IOException
IOExceptionprotected void lazyCreateProperties() throws IOException
IOExceptionpublic void beforeMarshall(WireFormat wireFormat) throws IOException
beforeMarshall in interface MarshallAwareIOExceptionpublic void afterMarshall(WireFormat wireFormat) throws IOException
afterMarshall in interface MarshallAwareIOExceptionpublic void beforeUnmarshall(WireFormat wireFormat) throws IOException
beforeUnmarshall in interface MarshallAwareIOExceptionpublic void afterUnmarshall(WireFormat wireFormat) throws IOException
afterUnmarshall in interface MarshallAwareIOExceptionpublic boolean isValid()
public void setResponseRequired(boolean responseRequired)
setResponseRequired in interface Commandpublic boolean isCacheEnabled() throws IOException
IOExceptionpublic void setCacheEnabled(boolean cacheEnabled) throws IOException
IOExceptionpublic boolean isStackTraceEnabled() throws IOException
IOExceptionpublic void setStackTraceEnabled(boolean stackTraceEnabled) throws IOException
IOExceptionpublic boolean isTcpNoDelayEnabled() throws IOException
IOExceptionpublic void setTcpNoDelayEnabled(boolean tcpNoDelayEnabled) throws IOException
IOExceptionpublic boolean isSizePrefixDisabled() throws IOException
IOExceptionpublic void setSizePrefixDisabled(boolean prefixPacketSize) throws IOException
IOExceptionpublic boolean isTightEncodingEnabled() throws IOException
IOExceptionpublic void setTightEncodingEnabled(boolean tightEncodingEnabled) throws IOException
IOExceptionpublic String getHost() throws IOException
IOExceptionpublic void setHost(String hostname) throws IOException
IOExceptionpublic long getMaxInactivityDuration() throws IOException
IOExceptionpublic void setMaxInactivityDuration(long maxInactivityDuration) throws IOException
IOExceptionpublic long getMaxInactivityDurationInitalDelay() throws IOException
IOExceptionpublic void setMaxInactivityDurationInitalDelay(long maxInactivityDurationInitalDelay) throws IOException
IOExceptionpublic long getMaxFrameSize() throws IOException
IOExceptionpublic void setMaxFrameSize(long maxFrameSize) throws IOException
IOExceptionpublic int getCacheSize() throws IOException
IOExceptionpublic void setCacheSize(int cacheSize) throws IOException
IOExceptionpublic Response visit(CommandVisitor visitor) throws Exception
public void setCommandId(int value)
setCommandId in interface Commandpublic int getCommandId()
getCommandId in interface Commandpublic boolean isResponseRequired()
isResponseRequired in interface Commandpublic boolean isResponse()
isResponse in interface Commandpublic boolean isBrokerInfo()
isBrokerInfo in interface Commandpublic boolean isMessageDispatch()
isMessageDispatch in interface Commandpublic boolean isMessageAck()
isMessageAck in interface Commandpublic boolean isMessageDispatchNotification()
isMessageDispatchNotification in interface Commandpublic boolean isShutdownInfo()
isShutdownInfo in interface Commandpublic boolean isConnectionControl()
isConnectionControl in interface Commandpublic boolean isConsumerControl()
isConsumerControl in interface Commandpublic void setCachedMarshalledForm(WireFormat wireFormat, ByteSequence data)
public ByteSequence getCachedMarshalledForm(WireFormat wireFormat)
Copyright © 2005–2015 FuseSource, Corp.. All rights reserved.