Nexus API Reference

EntityRefFactoryBuilder
in package

FinalYes
Tags
template

T of object

template

C of object

psalm-api

Table of Contents

Methods

__construct()  : mixed
build()  : EntityRefFactory
handle()  : self
using()  : self
withConnectionLifecycle()  : self
Pool-backed mode: the actor borrows via `$acquire` and the pool slot is returned via `$release($conn)` on PostStop instead of `close()`.
withConnectionSource()  : self
Dedicated-connection mode: each spawned actor owns the connection returned by `$source` and `close()`s it on PostStop. Use for fresh connections (e.g. `DriverManager::getConnection`).
withReceiveTimeout()  : self
withReplayPolicy()  : self

Methods

handle()

public handle(Closure $commandHandler) : self
Parameters
$commandHandler : Closure
Return values
self

withConnectionLifecycle()

Pool-backed mode: the actor borrows via `$acquire` and the pool slot is returned via `$release($conn)` on PostStop instead of `close()`.

public withConnectionLifecycle(callable(): Connection $acquire, callable(Connection): void $release) : self
Parameters
$acquire : callable(): Connection
$release : callable(Connection): void
Return values
self

withConnectionSource()

Dedicated-connection mode: each spawned actor owns the connection returned by `$source` and `close()`s it on PostStop. Use for fresh connections (e.g. `DriverManager::getConnection`).

public withConnectionSource(Closure $source) : self
Parameters
$source : Closure
Return values
self

        
On this page

Search results