DeferredObservableUpDownCounter
class DeferredObservableUpDownCounter implements ObservableUpDownCounterInterface
| internal |
Keep a pre-fork observable up-down counter and its callbacks replayable.
Properties
| protected ObservableUpDownCounterInterface|null | $delegate |
Methods
Create a deferred observable up-down counter.
Bind this handle to an instrument from the given meter.
Unbind this handle from its worker instrument.
Register an observation callback that follows worker rebinding.
Determine whether this instrument belongs to the given deferred meter.
Return the current worker instrument.
Determine whether the current observable up-down counter is enabled.
Details
at line 26
__construct(DeferredMeter $meter, string $name, string|null $unit, string|null $description, array $advisory, array $callbacks)
Create a deferred observable up-down counter.
at line 39
void
bind(MeterInterface $meter)
Bind this handle to an instrument from the given meter.
at line 53
void
unbind()
Unbind this handle from its worker instrument.
at line 61
ObservableCallbackInterface
observe(callable $callback)
Register an observation callback that follows worker rebinding.
at line 70
bool
belongsTo(DeferredMeter $meter)
Determine whether this instrument belongs to the given deferred meter.
at line 78
ObservableUpDownCounterInterface|null
delegate()
Return the current worker instrument.
at line 86
bool
isEnabled()
Determine whether the current observable up-down counter is enabled.