Documentation

ConsumerPool
in package

Put multiple `ServiceCloudConsumer` instances into a pool which guarantees to persist relations e.g. `BlockerTemplate` -> `ServiceTemplate`. That means, if one consumer gets invalidated, all other within this pool gets invalidated, too.

This is useful together with AbstractPoolMiddleware.

Table of Contents

Properties

$consumers  : array<string|int, ServiceCloudConsumer>
Consumers.

Methods

__construct()  : mixed
C'tor.
getConsumer()  : mixed
Get consumer by class type.
getConsumers()  : mixed
Getter.
invalidate()  : mixed
Invalidates all consumers.

Properties

Methods

getConsumer()

Get consumer by class type.

public getConsumer(string $typeClass) : mixed
Parameters
$typeClass : string

Should be the class which extends from AbstractTemplate

getConsumers()

Getter.

public getConsumers() : mixed
Tags
codeCoverageIgnore

invalidate()

Invalidates all consumers.

public invalidate() : mixed

        
On this page

Search results