Class ConnectionPoolOptions
java.lang.Object
org.irods.irods4j.high_level.connection.ConnectionPoolOptions
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 Summary
FieldsModifier and TypeFieldDescriptionDefines the number of times a connection is retrieved from the pool before it is refreshed.Defines the number of seconds that must pass before a connection is refreshed.booleanInstructs the connection pool to refresh a connection when a change is detected in any of the zone's resources. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
numberOfRetrievalsBeforeConnectionRefresh
Defines the number of times a connection is retrieved from the pool before it is refreshed.- Since:
- 0.1.0
-
numberOfSecondsBeforeConnectionRefresh
Defines the number of seconds that must pass before a connection is refreshed.- Since:
- 0.1.0
-
refreshConnectionsWhenResourceChangesDetected
public boolean refreshConnectionsWhenResourceChangesDetectedInstructs 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()
-