Enum DeclarativeSlotPool.NoOpNewSlotsListener
java.lang.Object
java.lang.Enum<DeclarativeSlotPool.NoOpNewSlotsListener>
org.apache.flink.runtime.jobmaster.slotpool.DeclarativeSlotPool.NoOpNewSlotsListener
- All Implemented Interfaces:
Serializable,Comparable<DeclarativeSlotPool.NoOpNewSlotsListener>,DeclarativeSlotPool.NewSlotsListener
- Enclosing interface:
- DeclarativeSlotPool
public static enum DeclarativeSlotPool.NoOpNewSlotsListener
extends Enum<DeclarativeSlotPool.NoOpNewSlotsListener>
implements DeclarativeSlotPool.NewSlotsListener
No-op
DeclarativeSlotPool.NewSlotsListener implementation.-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionvoidnotifyNewSlotsAreAvailable(Collection<? extends PhysicalSlot> newlyAvailableSlots) Notifies the listener about newly available slots.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
notifyNewSlotsAreAvailable
Description copied from interface:DeclarativeSlotPool.NewSlotsListenerNotifies the listener about newly available slots.This method will be called whenever newly offered slots are accepted or if an allocated slot should become free after it is being
freed.- Specified by:
notifyNewSlotsAreAvailablein interfaceDeclarativeSlotPool.NewSlotsListener- Parameters:
newlyAvailableSlots- are the newly available slots
-