|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemq.transport.TransportStatusEvent
public class TransportStatusEvent
A TransportStatusEvent is raised when the state of the underlying transport channel changes
| Field Summary | |
|---|---|
static int |
CONNECTED
The channel has been intially and successfully connected |
static int |
DISCONNECTED
The channel has been disconnected, but maybe reconnected |
static int |
FAILED
The channel has failed |
static int |
RECONNECTED
The channel has successfully reconnected after a disconnect |
static int |
STOPPED
The channel has been STOPPED |
| Constructor Summary | |
|---|---|
TransportStatusEvent()
Default Constructor |
|
TransportStatusEvent(TransportChannel tc,
int channelStatus)
Constructs an event with the given channel status. |
|
| Method Summary | |
|---|---|
int |
getChannelStatus()
|
URI |
getRemoteURI()
|
TransportChannel |
getTransportChannel()
|
void |
setChannelStatus(int channelStatus)
|
void |
setRemoteURI(URI remoteURI)
|
void |
setTransportChannel(TransportChannel transportChannel)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CONNECTED
public static final int DISCONNECTED
public static final int RECONNECTED
public static final int FAILED
public static final int STOPPED
| Constructor Detail |
|---|
public TransportStatusEvent()
public TransportStatusEvent(TransportChannel tc,
int channelStatus)
tc - channelStatus - the channel status| Method Detail |
|---|
public String toString()
toString in class Objectpublic int getChannelStatus()
public void setChannelStatus(int channelStatus)
channelStatus - The channelStatus to set.public TransportChannel getTransportChannel()
public void setTransportChannel(TransportChannel transportChannel)
transportChannel - The transportChannel to set.public URI getRemoteURI()
public void setRemoteURI(URI remoteURI)
remoteURI - The remoteURI to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||