Class ContinuousSourceUtils.AvailabilityHelper
java.lang.Object
com.here.platform.data.client.flink.impl.ContinuousSourceUtils.AvailabilityHelper
- Enclosing class:
- ContinuousSourceUtils
Thread-safe availability notifier for bridging push (background thread) to pull (pollNext).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAvailabilityFuture(scala.Function0<Object> hasData) Called by the framework thread.voidCalled from background thread when new data is available.
-
Constructor Details
-
AvailabilityHelper
public AvailabilityHelper()
-
-
Method Details
-
getAvailabilityFuture
Called by the framework thread. Returns completed if data is available.- Parameters:
hasData- supplier re-evaluated under lock to avoid race with notifyAvailable()
-
notifyAvailable
public void notifyAvailable()Called from background thread when new data is available.
-