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
FieldsModifier and TypeFieldDescriptionstatic final longstatic final longstatic final longstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionPoolSettings(int maxConnectionPoolSize, long connectionAcquisitionTimeout, long maxConnectionLifetime, long idleTimeBeforeConnectionTest) Creates an instance of aPoolSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theconnectionAcquisitionTimeoutrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theidleTimeBeforeConnectionTestrecord component.booleanlongReturns the value of themaxConnectionLifetimerecord component.booleanintReturns the value of themaxConnectionPoolSizerecord component.final StringtoString()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 aPoolSettingsrecord class.- Parameters:
maxConnectionPoolSize- the value for themaxConnectionPoolSizerecord componentconnectionAcquisitionTimeout- the value for theconnectionAcquisitionTimeoutrecord componentmaxConnectionLifetime- the value for themaxConnectionLifetimerecord componentidleTimeBeforeConnectionTest- the value for theidleTimeBeforeConnectionTestrecord 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 themaxConnectionPoolSizerecord component.- Returns:
- the value of the
maxConnectionPoolSizerecord component
-
connectionAcquisitionTimeout
public long connectionAcquisitionTimeout()Returns the value of theconnectionAcquisitionTimeoutrecord component.- Returns:
- the value of the
connectionAcquisitionTimeoutrecord component
-
maxConnectionLifetime
public long maxConnectionLifetime()Returns the value of themaxConnectionLifetimerecord component.- Returns:
- the value of the
maxConnectionLifetimerecord component
-
idleTimeBeforeConnectionTest
public long idleTimeBeforeConnectionTest()Returns the value of theidleTimeBeforeConnectionTestrecord component.- Returns:
- the value of the
idleTimeBeforeConnectionTestrecord component
-