org.apache.activemq.network
Class ForwardingBridge
java.lang.Object
org.apache.activemq.network.ForwardingBridge
- All Implemented Interfaces:
- Service
public class ForwardingBridge
- extends Object
- implements Service
Forwards all messages from the local broker to the remote broker.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ForwardingBridge
public ForwardingBridge(Transport localBroker,
Transport remoteBroker)
start
public void start()
throws Exception
- Specified by:
start in interface Service
- Throws:
Exception
triggerStartBridge
protected void triggerStartBridge()
throws IOException
- Throws:
IOException
stop
public void stop()
throws Exception
- Specified by:
stop in interface Service
- Throws:
Exception
serviceRemoteException
public void serviceRemoteException(Throwable error)
serviceRemoteCommand
protected void serviceRemoteCommand(Command command)
serviceLocalException
public void serviceLocalException(Throwable error)
serviceLocalCommand
protected void serviceLocalCommand(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.
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.