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
$consumers
Consumers.
private
array<string|int, ServiceCloudConsumer>
$consumers
= []
Methods
__construct()
C'tor.
public
__construct(array<string|int, ServiceCloudConsumer> $consumers) : mixed
Parameters
- $consumers : array<string|int, ServiceCloudConsumer>
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
invalidate()
Invalidates all consumers.
public
invalidate() : mixed