public interface ConnectionHandler
The concrete handler should manage connection lifecycle, including connection retrieving and releasing.
Modifier and Type | Method and Description |
---|---|
<R> R |
withConnection(ConnectionOperation<R> operation)
Execute given
ConnectionOperation using a managed connection. |
default void |
withConnection(ConnectionRunnable operation)
Execute given
ConnectionRunnable operation using a managed connection. |
<R> R withConnection(ConnectionOperation<R> operation)
ConnectionOperation
using a managed connection.R
- Operation result typeoperation
- Operation to execute (not null)default void withConnection(ConnectionRunnable operation)
ConnectionRunnable
operation using a managed connection.operation
- Operation to execute (not null)Copyright © 2019 The Holon Platform. All rights reserved.