StreamProbe
A probe that forwards every Measurement from a stream while resumed.
Subclasses implement stream. Resuming fails if stream is null, e.g. when its device is not connected. See ScreenProbe for an example.
- Inheritance
-
- Object
- AbstractExecutor<
Measure> - Probe
- StreamProbe
- Implementers
Constructors
StreamProbe
Properties
stream
The stream of Measurements to forward. Implemented by subclasses.
Read on the first resume after creation or a pause.
Methods
onPause
Called by pause. Returns true if successfully paused.
If false, the state is not changed.
onResume
Called by resume. Returns true if successfully resumed.
If false, the executor moves to ExecutorState.PausedButShouldBeResumed.