Package org.apache.activemq.broker
Class TransportStatusDetector
java.lang.Object
org.apache.activemq.broker.TransportStatusDetector
- All Implemented Interfaces:
Runnable
,org.apache.activemq.Service
public class TransportStatusDetector
extends Object
implements org.apache.activemq.Service, Runnable
Used to provide information on the status of the Connection
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
doSweep()
int
void
run()
void
setSweepInterval
(int sweepInterval) The sweepInterval to set.void
start()
void
stop()
-
Method Details
-
getSweepInterval
public int getSweepInterval()- Returns:
- Returns the sweepInterval.
-
setSweepInterval
public void setSweepInterval(int sweepInterval) The sweepInterval to set.- Parameters:
sweepInterval
-
-
doCollection
protected void doCollection() -
doSweep
protected void doSweep() -
doCollection
-
run
public void run() -
start
- Specified by:
start
in interfaceorg.apache.activemq.Service
- Throws:
Exception
-
stop
- Specified by:
stop
in interfaceorg.apache.activemq.Service
- Throws:
Exception
-