public class ForwardingBridge extends Object implements org.apache.activemq.Service
| Constructor and Description |
|---|
ForwardingBridge(org.apache.activemq.transport.Transport localBroker,
org.apache.activemq.transport.Transport remoteBroker) |
| Modifier and Type | Method and Description |
|---|---|
String |
getClientId() |
long |
getDequeueCounter() |
String |
getDestinationFilter() |
long |
getEnqueueCounter() |
String |
getLocalAddress() |
String |
getLocalBrokerName() |
int |
getPrefetchSize() |
String |
getRemoteAddress() |
String |
getRemoteBrokerName() |
boolean |
isDispatchAsync() |
boolean |
isUseCompression() |
protected void |
serviceLocalCommand(org.apache.activemq.command.Command command) |
void |
serviceLocalException(Throwable error) |
protected void |
serviceRemoteCommand(org.apache.activemq.command.Command command) |
void |
serviceRemoteException(Throwable error) |
void |
setClientId(String clientId) |
void |
setDestinationFilter(String destinationFilter) |
void |
setDispatchAsync(boolean dispatchAsync) |
void |
setNetworkBridgeFailedListener(NetworkBridgeListener listener) |
void |
setPrefetchSize(int prefetchSize) |
void |
setUseCompression(boolean useCompression) |
void |
start() |
void |
stop() |
protected void |
triggerStartBridge() |
public ForwardingBridge(org.apache.activemq.transport.Transport localBroker, org.apache.activemq.transport.Transport remoteBroker)
public void start() throws Exception
start in interface org.apache.activemq.ServiceExceptionprotected void triggerStartBridge() throws IOException
IOExceptionpublic void stop() throws Exception
stop in interface org.apache.activemq.ServiceExceptionpublic void serviceRemoteException(Throwable error)
protected void serviceRemoteCommand(org.apache.activemq.command.Command command)
public void serviceLocalException(Throwable error)
protected void serviceLocalCommand(org.apache.activemq.command.Command command)
public String getClientId()
public void setClientId(String clientId)
public int getPrefetchSize()
public void setPrefetchSize(int prefetchSize)
public boolean isDispatchAsync()
public void setDispatchAsync(boolean dispatchAsync)
public String getDestinationFilter()
public void setDestinationFilter(String destinationFilter)
public void setNetworkBridgeFailedListener(NetworkBridgeListener listener)
public String getRemoteAddress()
public String getLocalAddress()
public String getLocalBrokerName()
public String getRemoteBrokerName()
public long getDequeueCounter()
public long getEnqueueCounter()
public void setUseCompression(boolean useCompression)
useCompression - True if forwarded Messages should have their bodies compressed.public boolean isUseCompression()
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.