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 Details

    • serviceRemoteException

      void serviceRemoteException(Throwable error)
      Service an exception received from the Remote Broker connection.
      Parameters:
      error -
    • serviceLocalException

      void serviceLocalException(Throwable error)
      Service an exception received from the Local Broker connection.
      Parameters:
      error -
    • setNetworkBridgeListener

      void setNetworkBridgeListener(NetworkBridgeListener listener)
      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

      void setMbeanObjectName(ObjectName objectName)
      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()