Package io.roastedroot.proxywasm
Class QueueName
- java.lang.Object
-
- io.roastedroot.proxywasm.QueueName
-
public class QueueName extends Object
Represents the identifier for a shared queue within the Proxy-WASM environment. A queue name is typically composed of a Virtual Machine (VM) identifier and a queue-specific name string.The VM ID provides a namespace, allowing different VMs (potentially running different WASM modules or configurations) to define queues with the same name string without collision.
Instances of this class are immutable.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
String
name()
Gets the specific name string part of the queue name.String
vmId()
Gets the VM identifier part of the queue name.
-
-
-
Constructor Detail
-
QueueName
public QueueName(String vmId, String name)
Constructs a new QueueName.- Parameters:
vmId
- The identifier of the VM context associated with this queue. Cannot be null.name
- The specific name of the queue within the VM context. Cannot be null.- Throws:
NullPointerException
- if eithervmId
orname
is null.
-
-