AXIAM PHP SDK

ReactorConfig
in package

FinalYes

Identifies one reactor to {@see ReactorServer} (CONTRACT.md §22.1, §22.10, §22.12).

Table of Contents

Properties

$mode  : string
$reactorId  : string|null
$signingKey  : Sensitive
$skewSeconds  : int
$tenantId  : string

Methods

__construct()  : mixed
isListener()  : bool
Whether this registration is fire-and-forget observation (§22.5).
queue()  : non-empty-string
The queue this reactor consumes — the one the SERVER declared for it (§22.1). Deriving the name is not the same as declaring it: nothing in this SDK can declare or bind a queue.

Properties

$mode read-only

public string $mode = ReactorEvents::MODE_INTERCEPT

$skewSeconds read-only

public int $skewSeconds = ReactorProtocol::FRESHNESS_SKEW_SECONDS

Methods

__construct()

public __construct(string $tenantId, Sensitive $signingKey[, string|null $reactorId = null ][, string|null $queue = null ][, string $mode = ReactorEvents::MODE_INTERCEPT ][, int $skewSeconds = ReactorProtocol::FRESHNESS_SKEW_SECONDS ]) : mixed
Parameters
$tenantId : string

The tenant whose events this reactor serves. An event naming any other tenant is refused before the handler sees it.

$signingKey : Sensitive

The tenant's HKDF-derived AMQP subkey (§8.1) — the same key that verifies the event and signs the reply, because §22.2's signing is symmetric in direction.

It MUST be fetched from the AXIAM management API; hardcoding one is prohibited. §22.12 requires the wrapper: it is a credential, it is never logged at any level, and it never appears in a reconnect diagnostic — which is why the type here is Sensitive rather than string.

$reactorId : string|null = null

This reactor's registration id. The queue name is derived from it when $queue is null.

$queue : string|null = null

Overrides the derived queue name. It is only ever the queue the SERVER declared for THIS reactor (§22.1) — a reactor never consumes, and never derives a name for, another reactor's queue.

$mode : string = ReactorEvents::MODE_INTERCEPT

ReactorEvents::MODE_INTERCEPT (the default) or ReactorEvents::MODE_LISTEN.

$skewSeconds : int = ReactorProtocol::FRESHNESS_SKEW_SECONDS

The ±freshness window applied to an event's issued_at, which also sets the nonce seen-set TTL (2×skew).

Tags
throws
InvalidArgumentException

when the configuration cannot identify a queue, names an unknown mode, or carries an empty signing key.

isListener()

Whether this registration is fire-and-forget observation (§22.5).

public isListener() : bool
Return values
bool

queue()

The queue this reactor consumes — the one the SERVER declared for it (§22.1). Deriving the name is not the same as declaring it: nothing in this SDK can declare or bind a queue.

public queue() : non-empty-string
Return values
non-empty-string
On this page

Search results