bootdesk/chat-sdk

QueueConcurrencyHandler
in package
implements ConcurrencyHandler

Table of Contents

Interfaces

ConcurrencyHandler

Properties

$config  : array<string|int, mixed>
$requestContext  : RequestContext|null
$state  : StateAdapter

Methods

__construct()  : mixed
process()  : void
Process an incoming message, applying the concurrency strategy.
dispatchAsync()  : void
dispatchDebounced()  : void
dispatchJob()  : void
processDropAsync()  : void
processSync()  : void

Properties

Methods

process()

Process an incoming message, applying the concurrency strategy.

public process(Adapter $adapter, string $threadId, Message $message, callable $processCallback[, ServerRequestInterface|null $request = null ]) : void
Parameters
$adapter : Adapter

The platform adapter

$threadId : string

The canonical thread ID

$message : Message

The incoming message (post-dedup, post-middleware)

$processCallback : callable

fn(Adapter, string $threadId, Message, array $skippedMessages, int $totalSinceLastHandler): void

$request : ServerRequestInterface|null = null

The original PSR-7 request (for job serialization)

processSync()

private processSync(string $lockKey, Adapter $adapter, string $threadId, Message $message, callable $processCallback) : void
Parameters
$lockKey : string
$adapter : Adapter
$threadId : string
$message : Message
$processCallback : callable
On this page

Search results