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
  • Enum Constant Details

  • Method Details

    • values

      public static DeclarativeSlotPool.NoOpNewSlotsListener[] 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

      public static DeclarativeSlotPool.NoOpNewSlotsListener valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • notifyNewSlotsAreAvailable

      public void notifyNewSlotsAreAvailable(Collection<? extends PhysicalSlot> newlyAvailableSlots)
      Description copied from interface: DeclarativeSlotPool.NewSlotsListener
      Notifies 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:
      notifyNewSlotsAreAvailable in interface DeclarativeSlotPool.NewSlotsListener
      Parameters:
      newlyAvailableSlots - are the newly available slots