StemPostgresAdapter class
Adapter that resolves PostgreSQL-backed factories from a postgres:// URL.
Constructors
- StemPostgresAdapter({String namespace = 'stem', String schema = 'public', String? applicationName, TlsConfig? tls, Duration backendDefaultTtl = const Duration(days: 1), Duration backendGroupDefaultTtl = const Duration(days: 1), Duration backendHeartbeatTtl = const Duration(minutes: 1)})
-
Creates a PostgreSQL adapter with optional defaults.
const
Properties
- applicationName → String?
-
Optional application name for PostgreSQL connections.
final
- backendDefaultTtl → Duration
-
Default TTL for task results.
final
- backendGroupDefaultTtl → Duration
-
Default TTL for group results.
final
- backendHeartbeatTtl → Duration
-
TTL for worker heartbeats stored in the backend.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Adapter identifier used in error messages.
no setter
- namespace → String
-
Namespace prefix used by PostgreSQL-backed stores.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schema → String
-
Schema used for PostgreSQL tables.
final
- tls → TlsConfig?
-
Optional TLS configuration used by PostgreSQL clients.
final
Methods
-
backendFactory(
Uri uri) → StemBackendFactory? -
Resolves a result backend factory for
uri. -
brokerFactory(
Uri uri) → StemBrokerFactory? -
Resolves a broker factory for
uri. -
lockStoreFactory(
Uri uri) → LockStoreFactory? -
Resolves a lock store factory for
uri. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
revokeStoreFactory(
Uri uri) → RevokeStoreFactory? -
Resolves a revoke store factory for
uri. -
scheduleStoreFactory(
Uri uri) → ScheduleStoreFactory? -
Resolves a schedule store factory for
uri. -
supports(
Uri uri, StemStoreKind kind) → bool -
Returns true when the adapter can provide
kindforuri. -
toString(
) → String -
A string representation of this object.
inherited
-
workflowStoreFactory(
Uri uri) → WorkflowStoreFactory? -
Resolves a workflow store factory for
uri.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited