Package org.apache.activemq.network
Interface NetworkBridge
- All Superinterfaces:
org.apache.activemq.Service
- All Known Implementing Classes:
CompositeDemandForwardingBridge,ConduitBridge,DemandForwardingBridge,DemandForwardingBridgeSupport,DurableConduitBridge
public interface NetworkBridge
extends org.apache.activemq.Service
Represents a network bridge interface
-
Method Summary
Modifier and TypeMethodDescriptionlonglongvoidvoidserviceLocalException(Throwable error) Service an exception received from the Local Broker connection.voidserviceRemoteException(Throwable error) Service an exception received from the Remote Broker connection.voidsetMbeanObjectName(ObjectName objectName) voidSet the NetworkBridgeFailedListenerMethods inherited from interface org.apache.activemq.Service
start, stop
-
Method Details
-
serviceRemoteException
Service an exception received from the Remote Broker connection.- Parameters:
error-
-
serviceLocalException
Service an exception received from the Local Broker connection.- Parameters:
error-
-
setNetworkBridgeListener
Set the NetworkBridgeFailedListener- Parameters:
listener-
-
getRemoteAddress
String getRemoteAddress()- Returns:
- the network address of the remote broker connection.
-
getRemoteBrokerName
String getRemoteBrokerName()- Returns:
- the name of the remote broker this bridge is connected to.
-
getRemoteBrokerId
String getRemoteBrokerId()- Returns:
- the id of the remote broker this bridge is connected to.
-
getLocalAddress
String getLocalAddress()- Returns:
- the network address of the local broker connection.
-
getLocalBrokerName
String getLocalBrokerName()- Returns:
- the name of the local broker this bridge is connected to.
-
getEnqueueCounter
long getEnqueueCounter()- Returns:
- the current number of enqueues this bridge has.
-
getDequeueCounter
long getDequeueCounter()- Returns:
- the current number of dequeues this bridge has.
-
getNetworkBridgeStatistics
NetworkBridgeStatistics getNetworkBridgeStatistics()- Returns:
- the statistics for this NetworkBridge
-
setMbeanObjectName
- Parameters:
objectName- The ObjectName assigned to this bridge in the MBean server.
-
getMbeanObjectName
ObjectName getMbeanObjectName()- Returns:
- the MBean name used to identify this bridge in the MBean server.
-
resetStats
void resetStats()
-