Package org.apache.activemq.command
Class KeepAliveInfo
- java.lang.Object
-
- org.apache.activemq.command.BaseCommand
-
- org.apache.activemq.command.KeepAliveInfo
-
- All Implemented Interfaces:
Command,DataStructure
public class KeepAliveInfo extends BaseCommand
-
-
Field Summary
Fields Modifier and Type Field Description static byteDATA_STRUCTURE_TYPE-
Fields inherited from class org.apache.activemq.command.BaseCommand
commandId, responseRequired
-
-
Constructor Summary
Constructors Constructor Description KeepAliveInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetDataStructureType()EndpointgetFrom()The endpoint within the transport where this message came from.EndpointgetTo()The endpoint within the transport where this message is going to - null means all endpoints.booleanisBrokerInfo()booleanisMarshallAware()booleanisMessage()booleanisMessageAck()booleanisMessageDispatch()booleanisMessageDispatchNotification()booleanisResponse()booleanisShutdownInfo()booleanisWireFormatInfo()voidsetFrom(Endpoint from)voidsetTo(Endpoint to)StringtoString()Responsevisit(CommandVisitor visitor)-
Methods inherited from class org.apache.activemq.command.BaseCommand
copy, getCommandId, isConnectionControl, isConsumerControl, isResponseRequired, setCommandId, setResponseRequired, toString
-
-
-
-
Field Detail
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDataStructureType
public byte getDataStructureType()
- Returns:
- The type of the data structure
-
isResponse
public boolean isResponse()
- Specified by:
isResponsein interfaceCommand- Overrides:
isResponsein classBaseCommand
-
isMessageDispatch
public boolean isMessageDispatch()
- Specified by:
isMessageDispatchin interfaceCommand- Overrides:
isMessageDispatchin classBaseCommand
-
isMessage
public boolean isMessage()
- Specified by:
isMessagein interfaceCommand- Overrides:
isMessagein classBaseCommand
-
isMessageAck
public boolean isMessageAck()
- Specified by:
isMessageAckin interfaceCommand- Overrides:
isMessageAckin classBaseCommand
-
isBrokerInfo
public boolean isBrokerInfo()
- Specified by:
isBrokerInfoin interfaceCommand- Overrides:
isBrokerInfoin classBaseCommand
-
isWireFormatInfo
public boolean isWireFormatInfo()
- Specified by:
isWireFormatInfoin interfaceCommand- Overrides:
isWireFormatInfoin classBaseCommand
-
getFrom
public Endpoint getFrom()
The endpoint within the transport where this message came from.- Specified by:
getFromin interfaceCommand- Overrides:
getFromin classBaseCommand
-
setFrom
public void setFrom(Endpoint from)
- Specified by:
setFromin interfaceCommand- Overrides:
setFromin classBaseCommand
-
getTo
public Endpoint getTo()
The endpoint within the transport where this message is going to - null means all endpoints.- Specified by:
getToin interfaceCommand- Overrides:
getToin classBaseCommand
-
setTo
public void setTo(Endpoint to)
- Specified by:
setToin interfaceCommand- Overrides:
setToin classBaseCommand
-
visit
public Response visit(CommandVisitor visitor) throws Exception
- Throws:
Exception
-
isMarshallAware
public boolean isMarshallAware()
- Specified by:
isMarshallAwarein interfaceDataStructure- Overrides:
isMarshallAwarein classBaseCommand
-
isMessageDispatchNotification
public boolean isMessageDispatchNotification()
- Specified by:
isMessageDispatchNotificationin interfaceCommand- Overrides:
isMessageDispatchNotificationin classBaseCommand
-
isShutdownInfo
public boolean isShutdownInfo()
- Specified by:
isShutdownInfoin interfaceCommand- Overrides:
isShutdownInfoin classBaseCommand
-
toString
public String toString()
- Overrides:
toStringin classBaseCommand
-
-