RiftPool class

Connection pool for Rift boxes.

RiftPool manages a pool of Box connections, supporting min/max connection limits, idle eviction, and health checks.

Constructors

RiftPool({required PoolConfig config, required Future<Box<E>> openBox<E>(String name)})
Creates a RiftPool.

Properties

activeCount → int
The number of active connections.
no setter
config → PoolConfig
The pool configuration.
final
hashCode → int
The hash code for this object.
no setterinherited
idleCount → int
The number of idle connections.
no setter
openBox → Future<Box<E>> Function<E>(String name)
Function to open a box by name.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stats → PoolStats
Gets current pool stats.
no setter

Methods

acquire(String boxName) → Future<PooledBox>
Acquires a connection from the pool for the given boxName.
close() → Future<void>
Closes all connections and shuts down the pool.
initialize() → Future<void>
Initializes the pool and pre-creates minimum connections.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release(String boxName, PooledBox pooled) → void
Releases a connection back to the pool.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited