mirror of https://github.com/apache/activemq.git
made more properties public; "closing", "closed" and "transportFailed"
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@387531 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
15101c7fbb
commit
0cc5d24dcb
|
@ -417,13 +417,6 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return true if this Connection is started
|
||||
*/
|
||||
protected boolean isStarted() {
|
||||
return started.get();
|
||||
}
|
||||
|
||||
/**
|
||||
* Temporarily stops a connection's delivery of incoming messages. Delivery
|
||||
* can be restarted using the connection's <CODE>start</CODE> method. When
|
||||
|
@ -672,6 +665,36 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
|
|||
// Properties
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Returns true if this connection has been started
|
||||
*
|
||||
* @return true if this Connection is started
|
||||
*/
|
||||
public boolean isStarted() {
|
||||
return started.get();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the connection is closed
|
||||
*/
|
||||
public boolean isClosed() {
|
||||
return closed.get();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the connection is in the process of being closed
|
||||
*/
|
||||
public boolean isClosing() {
|
||||
return closing.get();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the underlying transport has failed
|
||||
*/
|
||||
public boolean isTransportFailed() {
|
||||
return transportFailed.get();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns the prefetchPolicy.
|
||||
*/
|
||||
|
@ -1145,10 +1168,6 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
|
|||
}
|
||||
}
|
||||
|
||||
public boolean isClosed() {
|
||||
return closed.get();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return statistics for this Connection
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue