public interface JLBHResultConsumer extends Consumer<JLBHResult>, Supplier<JLBHResult>
Modifier and Type | Method and Description |
---|---|
static JLBHResultConsumer |
newThreadSafeInstance()
Thread safety (when reading the result from a thread that is different from the one executing the JLBH)
is guaranteed by making sure that the result data is visible after being generated by JLBH.
|
static JLBHResultConsumer newThreadSafeInstance()
When using this instance on its own, make sure the JLBHResult implementation passed to the accept method is immutable.
Copyright © 2018. All rights reserved.