public interface ConnectionFactoryProvider
ConnectionFactoryOptions and optionally return an implementation of ConnectionFactory.| Modifier and Type | Method and Description |
|---|---|
ConnectionFactory |
create(ConnectionFactoryOptions connectionFactoryOptions)
Creates a new
ConnectionFactory given a collection of ConnectionFactoryOptions. |
boolean |
supports(ConnectionFactoryOptions connectionFactoryOptions)
Whether this
ConnectionFactoryProvider supports this collection of ConnectionFactoryOptions. |
ConnectionFactory create(ConnectionFactoryOptions connectionFactoryOptions)
ConnectionFactory given a collection of ConnectionFactoryOptions. This method is only called if a previous invocation of
supports(ConnectionFactoryOptions) has returned true.connectionFactoryOptions - a collection of ConnectionFactoryOptionsConnectionFactory created from this collection of ConnectionFactoryOptionsIllegalArgumentException - if connectionFactoryOptions is nullboolean supports(ConnectionFactoryOptions connectionFactoryOptions)
ConnectionFactoryProvider supports this collection of ConnectionFactoryOptions.connectionFactoryOptions - a collection of ConnectionFactoryOptionstrue if this ConnectionFactoryProvider supports this collection of ConnectionFactoryOptions, false otherwiseIllegalArgumentException - if connectionFactoryOptions is nullCopyright © 2019. All rights reserved.