public class AmqpClientFactory extends Object
AmqpClient
. Also, it
is used to access the WebSocketFactory
used to create the underlying
WebSocket
connection over which AMQP 0-9-1 protocol will be run.
The WebSocketFactory
can be used to set connection-timeout,
challenge handlers, redirect policy, etc. These properties/characteristics
set on the WebSocketFactory
will be inherited by the
WebSocket
instances that are created using the factory.Modifier and Type | Method and Description |
---|---|
AmqpClient |
createAmqpClient()
Creates and returns a new instance of
AmqpClient class every time
this method is invoked. |
static AmqpClientFactory |
createAmqpClientFactory()
Creates and returns a new instance of AmqpClientFactory every time the
method is invoked.
|
WebSocketFactory |
getWebSocketFactory()
Returns the
WebSocketFactory instance that will be eventually
used to create a WebSocket connection to run AMQP 0-9-1
protocol. |
void |
setWebSocketFactory(WebSocketFactory wsFactory)
Sets the
WebSocketFactory to be used to create the underlying
WebSocket connection to run AMQP 0-9-1 protocol. |
public static AmqpClientFactory createAmqpClientFactory()
public AmqpClient createAmqpClient()
AmqpClient
class every time
this method is invoked.AmqpClient
public WebSocketFactory getWebSocketFactory()
WebSocketFactory
instance that will be eventually
used to create a WebSocket
connection to run AMQP 0-9-1
protocol.WebSocketFactory
public void setWebSocketFactory(WebSocketFactory wsFactory)
WebSocketFactory
to be used to create the underlying
WebSocket
connection to run AMQP 0-9-1 protocol.wsFactory
- instance of WebSocketFactoryCopyright © 2014. All Rights Reserved.