Package io.roastedroot.proxywasm
Class SimpleSharedQueueHandler.SharedQueue
- java.lang.Object
-
- io.roastedroot.proxywasm.SimpleSharedQueueHandler.SharedQueue
-
- Enclosing class:
- SimpleSharedQueueHandler
public static class SimpleSharedQueueHandler.SharedQueue extends Object
Represents an individual shared queue managed bySimpleSharedQueueHandler. Each queue has a unique name (within its VM), a host-assigned ID, and holds its data in an in-memory list.
-
-
Field Summary
Fields Modifier and Type Field Description LinkedList<byte[]>dataThe underlying list holding the byte array messages in the queue (FIFO order).intidThe unique integer ID assigned to this queue by the handler.QueueNamequeueNameThe name identifying this queue, composed of a VM ID and queue name string.
-
Constructor Summary
Constructors Constructor Description SharedQueue(QueueName queueName, int id)Constructs a new SharedQueue instance.
-
-
-
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.
-
-