public class ProxyConnectionFactoryProvider extends Object implements ConnectionFactoryProvider
ConnectionFactoryProvider for creating proxy ConnectionFactory.
This provider takes proxyListener parameter and its value can be:
Class
Collection of above
| Modifier and Type | Field and Description |
|---|---|
static String |
PROXY_DRIVER
Driver option value.
|
static Option<Object> |
PROXY_LISTENERS
Proxy listener
Option. |
| Constructor and Description |
|---|
ProxyConnectionFactoryProvider() |
| Modifier and Type | Method and Description |
|---|---|
ConnectionFactory |
create(ConnectionFactoryOptions connectionFactoryOptions)
Create a new proxy
ConnectionFactory from given ConnectionFactoryOptions. |
String |
getDriver() |
boolean |
supports(ConnectionFactoryOptions connectionFactoryOptions) |
public static final String PROXY_DRIVER
public ConnectionFactory create(ConnectionFactoryOptions connectionFactoryOptions)
ConnectionFactory from given ConnectionFactoryOptions.create in interface ConnectionFactoryProviderconnectionFactoryOptions - a collection of ConnectionFactoryOptionsConnectionFactoryIllegalArgumentException - if connectionFactoryOptions is nullIllegalStateException - if there is no value for ConnectionFactoryOptions.PROTOCOLIllegalArgumentException - if ConnectionFactoryOptions.PROTOCOL has invalid formatIllegalArgumentException - if delegating ConnectionFactory cannot be foundIllegalArgumentException - if specified proxyListener parameter class cannot be found or instantiatedIllegalArgumentException - if specified proxyListener parameter value is not a proxy listener class or instancepublic boolean supports(ConnectionFactoryOptions connectionFactoryOptions)
supports in interface ConnectionFactoryProviderpublic String getDriver()
getDriver in interface ConnectionFactoryProviderCopyright © 2020. All rights reserved.