Class 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.

    • 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 either vmId or name is null.
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • vmId

        public String vmId()
        Gets the VM identifier part of the queue name.
        Returns:
        The non-null VM ID string.
      • name

        public String name()
        Gets the specific name string part of the queue name.
        Returns:
        The non-null queue name string.