DelayedStalenessHandlerFactory
in package
implements
StalenessHandlerFactoryInterface
FinalYes
Table of Contents
Interfaces
Properties
- $clock : ClockInterface
- $freshen : Closure
- $nanoDelay : int
- $stale : Closure
- $staleHandlers : WeakMap<DelayedStalenessHandler, int>
Methods
- __construct() : mixed
- create() : ReferenceCounterInterface|StalenessHandlerInterface
- triggerStaleHandlers() : void
Properties
$clock read-only
private
ClockInterface
$clock
$freshen read-only
private
Closure
$freshen
$nanoDelay read-only
private
int
$nanoDelay
$stale read-only
private
Closure
$stale
$staleHandlers
private
WeakMap<DelayedStalenessHandler, int>
$staleHandlers
Methods
__construct()
public
__construct(ClockInterface $clock, float $delay) : mixed
Parameters
- $clock : ClockInterface
- $delay : float
-
delay in seconds
Tags
create()
public
create() : ReferenceCounterInterface|StalenessHandlerInterface
Return values
ReferenceCounterInterface|StalenessHandlerInterfacetriggerStaleHandlers()
private
triggerStaleHandlers() : void