Class ConnectionPoolOptions

java.lang.Object
org.irods.irods4j.high_level.connection.ConnectionPoolOptions

public class ConnectionPoolOptions extends Object
Defines various options for changing the behavior of a connection pool. Refresh options are not mutually exclusive. It is important to understand that any of the options can trigger a connection refresh. When a refresh occurs, all state related to connection refresh is reset. Therefore, care must be taken when setting multiple options in order to obtain deterministic refresh behavior.
Since:
0.1.0
  • Field Details

    • numberOfRetrievalsBeforeConnectionRefresh

      public Optional<Integer> numberOfRetrievalsBeforeConnectionRefresh
      Defines the number of times a connection is retrieved from the pool before it is refreshed.
      Since:
      0.1.0
    • numberOfSecondsBeforeConnectionRefresh

      public Optional<Integer> numberOfSecondsBeforeConnectionRefresh
      Defines the number of seconds that must pass before a connection is refreshed.
      Since:
      0.1.0
    • refreshConnectionsWhenResourceChangesDetected

      public boolean refreshConnectionsWhenResourceChangesDetected
      Instructs the connection pool to refresh a connection when a change is detected in any of the zone's resources.
      Since:
      0.1.0
  • Constructor Details

    • ConnectionPoolOptions

      public ConnectionPoolOptions()