java.lang.Object
java.lang.Record
org.neo4j.driver.internal.async.pool.PoolSettings
public record PoolSettings(int maxConnectionPoolSize, long connectionAcquisitionTimeout, long maxConnectionLifetime, long idleTimeBeforeConnectionTest)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final long
static final long
static final long
static final int
static final int
-
Constructor Summary
ConstructorDescriptionPoolSettings
(int maxConnectionPoolSize, long connectionAcquisitionTimeout, long maxConnectionLifetime, long idleTimeBeforeConnectionTest) Creates an instance of aPoolSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the value of theconnectionAcquisitionTimeout
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
Returns the value of theidleTimeBeforeConnectionTest
record component.boolean
long
Returns the value of themaxConnectionLifetime
record component.boolean
int
Returns the value of themaxConnectionPoolSize
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
NOT_CONFIGURED
public static final int NOT_CONFIGURED- See Also:
-
DEFAULT_MAX_CONNECTION_POOL_SIZE
public static final int DEFAULT_MAX_CONNECTION_POOL_SIZE- See Also:
-
DEFAULT_IDLE_TIME_BEFORE_CONNECTION_TEST
public static final long DEFAULT_IDLE_TIME_BEFORE_CONNECTION_TEST- See Also:
-
DEFAULT_MAX_CONNECTION_LIFETIME
public static final long DEFAULT_MAX_CONNECTION_LIFETIME -
DEFAULT_CONNECTION_ACQUISITION_TIMEOUT
public static final long DEFAULT_CONNECTION_ACQUISITION_TIMEOUT
-
-
Constructor Details
-
PoolSettings
public PoolSettings(int maxConnectionPoolSize, long connectionAcquisitionTimeout, long maxConnectionLifetime, long idleTimeBeforeConnectionTest) Creates an instance of aPoolSettings
record class.- Parameters:
maxConnectionPoolSize
- the value for themaxConnectionPoolSize
record componentconnectionAcquisitionTimeout
- the value for theconnectionAcquisitionTimeout
record componentmaxConnectionLifetime
- the value for themaxConnectionLifetime
record componentidleTimeBeforeConnectionTest
- the value for theidleTimeBeforeConnectionTest
record component
-
-
Method Details
-
idleTimeBeforeConnectionTestEnabled
public boolean idleTimeBeforeConnectionTestEnabled() -
maxConnectionLifetimeEnabled
public boolean maxConnectionLifetimeEnabled() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
maxConnectionPoolSize
public int maxConnectionPoolSize()Returns the value of themaxConnectionPoolSize
record component.- Returns:
- the value of the
maxConnectionPoolSize
record component
-
connectionAcquisitionTimeout
public long connectionAcquisitionTimeout()Returns the value of theconnectionAcquisitionTimeout
record component.- Returns:
- the value of the
connectionAcquisitionTimeout
record component
-
maxConnectionLifetime
public long maxConnectionLifetime()Returns the value of themaxConnectionLifetime
record component.- Returns:
- the value of the
maxConnectionLifetime
record component
-
idleTimeBeforeConnectionTest
public long idleTimeBeforeConnectionTest()Returns the value of theidleTimeBeforeConnectionTest
record component.- Returns:
- the value of the
idleTimeBeforeConnectionTest
record component
-