Class ForwardingBridge

java.lang.Object
org.apache.activemq.network.ForwardingBridge
All Implemented Interfaces:
org.apache.activemq.Service

public class ForwardingBridge extends Object implements org.apache.activemq.Service
Forwards all messages from the local broker to the remote broker.
  • Constructor Details

    • ForwardingBridge

      public ForwardingBridge(org.apache.activemq.transport.Transport localBroker, org.apache.activemq.transport.Transport remoteBroker)
  • Method Details

    • start

      public void start() throws Exception
      Specified by:
      start in interface org.apache.activemq.Service
      Throws:
      Exception
    • triggerStartBridge

      protected void triggerStartBridge() throws IOException
      Throws:
      IOException
    • stop

      public void stop() throws Exception
      Specified by:
      stop in interface org.apache.activemq.Service
      Throws:
      Exception
    • serviceRemoteException

      public void serviceRemoteException(Throwable error)
    • serviceRemoteCommand

      protected void serviceRemoteCommand(org.apache.activemq.command.Command command)
    • serviceLocalException

      public void serviceLocalException(Throwable error)
    • serviceLocalCommand

      protected void serviceLocalCommand(org.apache.activemq.command.Command command)
    • getClientId

      public String getClientId()
    • setClientId

      public void setClientId(String clientId)
    • getPrefetchSize

      public int getPrefetchSize()
    • setPrefetchSize

      public void setPrefetchSize(int prefetchSize)
    • isDispatchAsync

      public boolean isDispatchAsync()
    • setDispatchAsync

      public void setDispatchAsync(boolean dispatchAsync)
    • getDestinationFilter

      public String getDestinationFilter()
    • setDestinationFilter

      public void setDestinationFilter(String destinationFilter)
    • setNetworkBridgeFailedListener

      public void setNetworkBridgeFailedListener(NetworkBridgeListener listener)
    • getRemoteAddress

      public String getRemoteAddress()
    • getLocalAddress

      public String getLocalAddress()
    • getLocalBrokerName

      public String getLocalBrokerName()
    • getRemoteBrokerName

      public String getRemoteBrokerName()
    • getDequeueCounter

      public long getDequeueCounter()
    • getEnqueueCounter

      public long getEnqueueCounter()
    • setUseCompression

      public void setUseCompression(boolean useCompression)
      Parameters:
      useCompression - True if forwarded Messages should have their bodies compressed.
    • isUseCompression

      public boolean isUseCompression()
      Returns:
      the vale of the useCompression setting, true if forwarded messages will be compressed.