|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.transport.fanout.FanoutTransport
public class FanoutTransport
A Transport that fans out a connection to multiple brokers.
| Constructor Summary | |
|---|---|
FanoutTransport()
|
|
| Method Summary | ||
|---|---|---|
void |
add(boolean reblance,
URI[] uris)
|
|
FutureResponse |
asyncRequest(Object command,
ResponseCallback responseCallback)
An asynchronous request response where the Receipt will be returned in the future. |
|
long |
getInitialReconnectDelay()
|
|
int |
getMaxReconnectAttempts()
|
|
long |
getMaxReconnectDelay()
|
|
int |
getMinAckCount()
|
|
int |
getReceiveCounter()
Returns a counter which gets incremented as data is read from the transport. |
|
long |
getReconnectDelayExponent()
|
|
String |
getRemoteAddress()
|
|
TransportListener |
getTransportListener()
Returns the current transport listener |
|
boolean |
isConnected()
|
|
boolean |
isDisposed()
|
|
boolean |
isFanOutQueues()
|
|
boolean |
isFaultTolerant()
Indicates if the transport can handle faults |
|
boolean |
isReconnectSupported()
|
|
boolean |
isUpdateURIsSupported()
|
|
|
narrow(Class<T> target)
|
|
void |
oneway(Object o)
A one way asynchronous send |
|
void |
reconnect()
|
|
void |
reconnect(URI uri)
reconnect to another location |
|
void |
remove(boolean rebalance,
URI[] uris)
|
|
Object |
request(Object command)
A synchronous request response |
|
Object |
request(Object command,
int timeout)
A synchronous request response |
|
protected void |
restoreTransport(org.apache.activemq.transport.fanout.FanoutTransport.FanoutTransportHandler th)
|
|
void |
setFanOutQueues(boolean fanOutQueues)
|
|
void |
setInitialReconnectDelay(long initialReconnectDelay)
|
|
void |
setMaxReconnectAttempts(int maxReconnectAttempts)
|
|
void |
setMaxReconnectDelay(long maxReconnectDelay)
|
|
void |
setMinAckCount(int minAckCount)
|
|
void |
setReconnectDelayExponent(long reconnectDelayExponent)
|
|
void |
setTransportListener(TransportListener commandListener)
Registers an inbound command listener |
|
void |
start()
|
|
void |
stop()
|
|
protected void |
transportListenerOnCommand(Command command)
|
|
void |
updateURIs(boolean reblance,
URI[] uris)
Provide a list of available alternative locations |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FanoutTransport()
throws InterruptedIOException
InterruptedIOException| Method Detail |
|---|
public void start()
throws Exception
start in interface ServiceException
public void stop()
throws Exception
stop in interface ServiceExceptionpublic int getMinAckCount()
public void setMinAckCount(int minAckCount)
public long getInitialReconnectDelay()
public void setInitialReconnectDelay(long initialReconnectDelay)
public long getMaxReconnectDelay()
public void setMaxReconnectDelay(long maxReconnectDelay)
public long getReconnectDelayExponent()
public void setReconnectDelayExponent(long reconnectDelayExponent)
public int getMaxReconnectAttempts()
public void setMaxReconnectAttempts(int maxReconnectAttempts)
public void oneway(Object o)
throws IOException
Transport
oneway in interface TransportIOException
public FutureResponse asyncRequest(Object command,
ResponseCallback responseCallback)
throws IOException
Transport
asyncRequest in interface TransportresponseCallback - TODO
IOException
public Object request(Object command)
throws IOException
Transport
request in interface TransportIOException
public Object request(Object command,
int timeout)
throws IOException
Transport
request in interface TransportIOExceptionpublic void reconnect()
public TransportListener getTransportListener()
Transport
getTransportListener in interface Transportpublic void setTransportListener(TransportListener commandListener)
Transport
setTransportListener in interface Transportpublic <T> T narrow(Class<T> target)
narrow in interface Transport
protected void restoreTransport(org.apache.activemq.transport.fanout.FanoutTransport.FanoutTransportHandler th)
throws Exception,
IOException
Exception
IOException
public void add(boolean reblance,
URI[] uris)
add in interface CompositeTransport
public void remove(boolean rebalance,
URI[] uris)
remove in interface CompositeTransport
public void reconnect(URI uri)
throws IOException
Transport
reconnect in interface TransportIOException - on failure of if not supportedpublic boolean isReconnectSupported()
isReconnectSupported in interface Transportpublic boolean isUpdateURIsSupported()
isUpdateURIsSupported in interface Transport
public void updateURIs(boolean reblance,
URI[] uris)
throws IOException
Transport
updateURIs in interface TransportIOExceptionpublic String getRemoteAddress()
getRemoteAddress in interface Transportprotected void transportListenerOnCommand(Command command)
public boolean isFaultTolerant()
Transport
isFaultTolerant in interface Transportpublic boolean isFanOutQueues()
public void setFanOutQueues(boolean fanOutQueues)
public boolean isDisposed()
isDisposed in interface Transportpublic boolean isConnected()
isConnected in interface Transportpublic int getReceiveCounter()
Transport
getReceiveCounter in interface Transport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||