Nexus API Reference

ThreadMapDirectory
in package
implements WorkerDirectory

Read onlyYes
FinalYes
Tags
psalm-api

Thread-safe actor directory backed by Swoole\Thread\Map. All workers share the same Map instance — Thread\Map handles internal synchronization, no explicit locking needed.

Table of Contents

Interfaces

WorkerDirectory

Methods

__construct()  : mixed
has()  : bool
lookup()  : int|null
register()  : void

Methods

has()

public has(string $path) : bool
Parameters
$path : string
Tags
psalm-suppress

InvalidArgument

Return values
bool

lookup()

public lookup(string $path) : int|null
Parameters
$path : string
Tags
psalm-suppress

InvalidArgument

Return values
int|null

register()

public register(string $path, int $workerId) : void
Parameters
$path : string
$workerId : int
Tags
psalm-suppress

InaccessibleProperty, InvalidArgument


        
On this page

Search results