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 DataStructure
public boolean isWireFormatInfo()
isWireFormatInfo
in interface Command
public boolean isMarshallAware()
isMarshallAware
in interface DataStructure
public 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
IOException
public Map<String,Object> getProperties() throws IOException
IOException
public void clearProperties()
public void setProperty(String name, Object value) throws IOException
IOException
protected void lazyCreateProperties() throws IOException
IOException
public void beforeMarshall(WireFormat wireFormat) throws IOException
beforeMarshall
in interface MarshallAware
IOException
public void afterMarshall(WireFormat wireFormat) throws IOException
afterMarshall
in interface MarshallAware
IOException
public void beforeUnmarshall(WireFormat wireFormat) throws IOException
beforeUnmarshall
in interface MarshallAware
IOException
public void afterUnmarshall(WireFormat wireFormat) throws IOException
afterUnmarshall
in interface MarshallAware
IOException
public boolean isValid()
public void setResponseRequired(boolean responseRequired)
setResponseRequired
in interface Command
public boolean isCacheEnabled() throws IOException
IOException
public void setCacheEnabled(boolean cacheEnabled) throws IOException
IOException
public boolean isStackTraceEnabled() throws IOException
IOException
public void setStackTraceEnabled(boolean stackTraceEnabled) throws IOException
IOException
public boolean isTcpNoDelayEnabled() throws IOException
IOException
public void setTcpNoDelayEnabled(boolean tcpNoDelayEnabled) throws IOException
IOException
public boolean isSizePrefixDisabled() throws IOException
IOException
public void setSizePrefixDisabled(boolean prefixPacketSize) throws IOException
IOException
public boolean isTightEncodingEnabled() throws IOException
IOException
public void setTightEncodingEnabled(boolean tightEncodingEnabled) throws IOException
IOException
public String getHost() throws IOException
IOException
public void setHost(String hostname) throws IOException
IOException
public long getMaxInactivityDuration() throws IOException
IOException
public void setMaxInactivityDuration(long maxInactivityDuration) throws IOException
IOException
public long getMaxInactivityDurationInitalDelay() throws IOException
IOException
public void setMaxInactivityDurationInitalDelay(long maxInactivityDurationInitalDelay) throws IOException
IOException
public long getMaxFrameSize() throws IOException
IOException
public void setMaxFrameSize(long maxFrameSize) throws IOException
IOException
public int getCacheSize() throws IOException
IOException
public void setCacheSize(int cacheSize) throws IOException
IOException
public String getProviderName() throws IOException
IOException
public void setProviderName(String providerName) throws IOException
IOException
public String getProviderVersion() throws IOException
IOException
public void setProviderVersion(String providerVersion) throws IOException
IOException
public String getPlatformDetails() throws IOException
IOException
public void setPlatformDetails(String platformDetails) throws IOException
IOException
public Response visit(CommandVisitor visitor) throws Exception
public void setCommandId(int value)
setCommandId
in interface Command
public int getCommandId()
getCommandId
in interface Command
public boolean isResponseRequired()
isResponseRequired
in interface Command
public boolean isResponse()
isResponse
in interface Command
public boolean isBrokerInfo()
isBrokerInfo
in interface Command
public boolean isMessageDispatch()
isMessageDispatch
in interface Command
public boolean isMessageAck()
isMessageAck
in interface Command
public boolean isMessageDispatchNotification()
isMessageDispatchNotification
in interface Command
public boolean isShutdownInfo()
isShutdownInfo
in interface Command
public boolean isConnectionControl()
isConnectionControl
in interface Command
public boolean isConsumerControl()
isConsumerControl
in interface Command
public void setCachedMarshalledForm(WireFormat wireFormat, ByteSequence data)
public ByteSequence getCachedMarshalledForm(WireFormat wireFormat)
Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.