|
||||||||||
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(java.net.URI[] uris)
|
FutureResponse |
asyncRequest(java.lang.Object command,
ResponseCallback responseCallback)
An asynchronous request response where the Receipt will be returned in the future. |
long |
getInitialReconnectDelay()
|
int |
getMaxReconnectAttempts()
|
long |
getMaxReconnectDelay()
|
long |
getReconnectDelayExponent()
|
java.lang.String |
getRemoteAddress()
|
TransportListener |
getTransportListener()
Returns the current transport listener |
java.lang.Object |
narrow(java.lang.Class target)
|
void |
oneway(java.lang.Object o)
A one way asynchronous send |
void |
reconnect()
|
void |
remove(java.net.URI[] uris)
|
java.lang.Object |
request(java.lang.Object command)
A synchronous request response |
java.lang.Object |
request(java.lang.Object command,
int timeout)
A synchronous request response |
protected void |
restoreTransport(org.apache.activemq.transport.fanout.FanoutTransport.FanoutTransportHandler th)
|
void |
setInitialReconnectDelay(long initialReconnectDelay)
|
void |
setMaxReconnectAttempts(int maxReconnectAttempts)
|
void |
setMaxReconnectDelay(long maxReconnectDelay)
|
void |
setReconnectDelayExponent(long reconnectDelayExponent)
|
void |
setTransportListener(TransportListener commandListener)
Registers an inbound command listener |
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FanoutTransport() throws java.io.InterruptedIOException
java.io.InterruptedIOException
Method Detail |
---|
public void start() throws java.lang.Exception
start
in interface Service
java.lang.Exception
public void stop() throws java.lang.Exception
stop
in interface Service
java.lang.Exception
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(java.lang.Object o) throws java.io.IOException
Transport
oneway
in interface Transport
java.io.IOException
public FutureResponse asyncRequest(java.lang.Object command, ResponseCallback responseCallback) throws java.io.IOException
Transport
asyncRequest
in interface Transport
responseCallback
- TODO
java.io.IOException
public java.lang.Object request(java.lang.Object command) throws java.io.IOException
Transport
request
in interface Transport
java.io.IOException
public java.lang.Object request(java.lang.Object command, int timeout) throws java.io.IOException
Transport
request
in interface Transport
java.io.IOException
public void reconnect()
public TransportListener getTransportListener()
Transport
getTransportListener
in interface Transport
public void setTransportListener(TransportListener commandListener)
Transport
setTransportListener
in interface Transport
public java.lang.Object narrow(java.lang.Class target)
narrow
in interface Transport
protected void restoreTransport(org.apache.activemq.transport.fanout.FanoutTransport.FanoutTransportHandler th) throws java.lang.Exception, java.io.IOException
java.lang.Exception
java.io.IOException
public void add(java.net.URI[] uris)
add
in interface CompositeTransport
public void remove(java.net.URI[] uris)
remove
in interface CompositeTransport
public java.lang.String getRemoteAddress()
getRemoteAddress
in interface Transport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |