Package org.apache.flink.runtime.io
Class AvailabilityProvider.AvailabilityHelper
java.lang.Object
org.apache.flink.runtime.io.AvailabilityProvider.AvailabilityHelper
- All Implemented Interfaces:
AvailabilityProvider
- Enclosing interface:
- AvailabilityProvider
public static final class AvailabilityProvider.AvailabilityHelper
extends Object
implements AvailabilityProvider
A availability implementation for providing the helpful functions of resetting the
available/unavailable states.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
AvailabilityProvider.AvailabilityHelper -
Field Summary
Fields inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
AVAILABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionand(CompletableFuture<?> other) and(AvailabilityProvider other) Returns the previously not completed future and resets the constant completedAvailabilityProvider.AVAILABLEas the current state.Creates a new uncompleted future as the current state and returns the previous uncompleted one.or(CompletableFuture<?> other) or(AvailabilityProvider other) voidResets the constant completedAvailabilityProvider.AVAILABLEas the current state.voidJudges to reset the current available state as unavailable.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
isApproximatelyAvailable, isAvailable
-
Constructor Details
-
AvailabilityHelper
public AvailabilityHelper()
-
-
Method Details
-
and
-
and
-
or
-
or
-
resetAvailable
public void resetAvailable()Resets the constant completedAvailabilityProvider.AVAILABLEas the current state. -
getAvailableFuture
- Specified by:
getAvailableFuturein interfaceAvailabilityProvider- Returns:
- a future that is completed if the respective provider is available.
-
toString
-