Interface PhysicalSlot

  • All Superinterfaces:
    SlotContext, SlotInfo

    public interface PhysicalSlot
    extends SlotContext
    The context of an AllocatedSlot. This represent an interface to classes outside the slot pool to interact with allocated slots.
    • Method Detail

      • tryAssignPayload

        boolean tryAssignPayload​(PhysicalSlot.Payload payload)
        Tries to assign the given payload to this allocated slot. This only works if there has not been another payload assigned to this slot.
        Parameters:
        payload - to assign to this slot
        Returns:
        true if the payload could be assigned, otherwise false