Class SimpleSharedQueueHandler.SharedQueue

  • Enclosing class:
    SimpleSharedQueueHandler

    public static class SimpleSharedQueueHandler.SharedQueue
    extends Object
    Represents an individual shared queue managed by SimpleSharedQueueHandler. Each queue has a unique name (within its VM), a host-assigned ID, and holds its data in an in-memory list.
    • Field Detail

      • queueName

        public final QueueName queueName
        The name identifying this queue, composed of a VM ID and queue name string.
      • data

        public final LinkedList<byte[]> data
        The underlying list holding the byte array messages in the queue (FIFO order).
      • id

        public final int id
        The unique integer ID assigned to this queue by the handler.
    • Constructor Detail

      • SharedQueue

        public SharedQueue​(QueueName queueName,
                           int id)
        Constructs a new SharedQueue instance.
        Parameters:
        queueName - The QueueName identifying this queue.
        id - The unique integer ID assigned by the handler.