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 byte
DATA_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 byte
getDataStructureType()
Endpoint
getFrom()
The endpoint within the transport where this message came from.Endpoint
getTo()
The endpoint within the transport where this message is going to - null means all endpoints.boolean
isBrokerInfo()
boolean
isMarshallAware()
boolean
isMessage()
boolean
isMessageAck()
boolean
isMessageDispatch()
boolean
isMessageDispatchNotification()
boolean
isResponse()
boolean
isShutdownInfo()
boolean
isWireFormatInfo()
void
setFrom(Endpoint from)
void
setTo(Endpoint to)
String
toString()
Response
visit(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:
isResponse
in interfaceCommand
- Overrides:
isResponse
in classBaseCommand
-
isMessageDispatch
public boolean isMessageDispatch()
- Specified by:
isMessageDispatch
in interfaceCommand
- Overrides:
isMessageDispatch
in classBaseCommand
-
isMessage
public boolean isMessage()
- Specified by:
isMessage
in interfaceCommand
- Overrides:
isMessage
in classBaseCommand
-
isMessageAck
public boolean isMessageAck()
- Specified by:
isMessageAck
in interfaceCommand
- Overrides:
isMessageAck
in classBaseCommand
-
isBrokerInfo
public boolean isBrokerInfo()
- Specified by:
isBrokerInfo
in interfaceCommand
- Overrides:
isBrokerInfo
in classBaseCommand
-
isWireFormatInfo
public boolean isWireFormatInfo()
- Specified by:
isWireFormatInfo
in interfaceCommand
- Overrides:
isWireFormatInfo
in classBaseCommand
-
getFrom
public Endpoint getFrom()
The endpoint within the transport where this message came from.- Specified by:
getFrom
in interfaceCommand
- Overrides:
getFrom
in classBaseCommand
-
setFrom
public void setFrom(Endpoint from)
- Specified by:
setFrom
in interfaceCommand
- Overrides:
setFrom
in classBaseCommand
-
getTo
public Endpoint getTo()
The endpoint within the transport where this message is going to - null means all endpoints.- Specified by:
getTo
in interfaceCommand
- Overrides:
getTo
in classBaseCommand
-
setTo
public void setTo(Endpoint to)
- Specified by:
setTo
in interfaceCommand
- Overrides:
setTo
in classBaseCommand
-
visit
public Response visit(CommandVisitor visitor) throws Exception
- Throws:
Exception
-
isMarshallAware
public boolean isMarshallAware()
- Specified by:
isMarshallAware
in interfaceDataStructure
- Overrides:
isMarshallAware
in classBaseCommand
-
isMessageDispatchNotification
public boolean isMessageDispatchNotification()
- Specified by:
isMessageDispatchNotification
in interfaceCommand
- Overrides:
isMessageDispatchNotification
in classBaseCommand
-
isShutdownInfo
public boolean isShutdownInfo()
- Specified by:
isShutdownInfo
in interfaceCommand
- Overrides:
isShutdownInfo
in classBaseCommand
-
toString
public String toString()
- Overrides:
toString
in classBaseCommand
-
-