public static enum DeclarativeSlotPool.NoOpNewSlotsListener extends Enum<DeclarativeSlotPool.NoOpNewSlotsListener> implements DeclarativeSlotPool.NewSlotsListener
DeclarativeSlotPool.NewSlotsListener
implementation.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
notifyNewSlotsAreAvailable(Collection<? extends PhysicalSlot> newlyAvailableSlots)
Notifies the listener about newly available slots.
|
static DeclarativeSlotPool.NoOpNewSlotsListener |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DeclarativeSlotPool.NoOpNewSlotsListener[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeclarativeSlotPool.NoOpNewSlotsListener INSTANCE
public static DeclarativeSlotPool.NoOpNewSlotsListener[] values()
for (DeclarativeSlotPool.NoOpNewSlotsListener c : DeclarativeSlotPool.NoOpNewSlotsListener.values()) System.out.println(c);
public static DeclarativeSlotPool.NoOpNewSlotsListener valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic void notifyNewSlotsAreAvailable(Collection<? extends PhysicalSlot> newlyAvailableSlots)
DeclarativeSlotPool.NewSlotsListener
This method will be called whenever newly offered slots are accepted or if an
allocated slot should become free after it is being freed
.
notifyNewSlotsAreAvailable
in interface DeclarativeSlotPool.NewSlotsListener
newlyAvailableSlots
- are the newly available slotsCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.