com.mchange.sc.v1.consuela.ethereum.rxblocks
This is an opportunity to transform acquired items -- to filter items that should not be published, to map items into something else etc.
This is an opportunity to transform acquired items -- to filter items that should not be published, to map items into something else etc. If the stream should terminate, excess items (thise beyond the termination point) should be trimmed.
At the same time it is a place where termination can be noticed, by inspecting acquired items. Signal termination
by setting transformed.shouldTerminate
to true.
A client is provided (primarily in case it is helpful for deciding termination).
In the simple case where T and S are the same type, no transformation need happen, and the stream of events is unbounded, a straightforward implementation is Future.successful( Transformed[T]( items, false ) )
See BlockHashPublisher for an example.
(Since version ) see corresponding Javadoc for more information.
(Since version 0.0.14) Use BlockNumberNoFilterPublisher, avoid iffily supported JSON-RPC filter ops.