public interface ConnectionFactory extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases any resources associated with this connection factory.
|
Connection |
getConnection()
Returns a connection to the JSON resource provider associated with this
connection factory.
|
Promise<Connection,ResourceException> |
getConnectionAsync()
Asynchronously obtains a connection to the JSON resource provider
associated with this connection factory.
|
void close()
close on a connection factory which is already closed has
no effect.
Applications should avoid closing connection factories while there are remaining active connections in use or connection attempts in progress.
close in interface AutoCloseableclose in interface CloseableResources.uncloseable(ConnectionFactory)Connection getConnection() throws ResourceException
ResourceException - If the connection request failed for some reason.Promise<Connection,ResourceException> getConnectionAsync()
FutureResult can be used to retrieve the completed connection.Copyright © 2025 Open Identity Platform Community. All rights reserved.