Interface SempClient

All Superinterfaces:
Serializable
All Known Implementing Classes:
BasicAuthSempClient

public interface SempClient extends Serializable
This interface defines methods for interacting with a Solace message broker using the Solace Element Management Protocol (SEMP). SEMP provides a way to manage and monitor various aspects of the broker, including queues and topics.
  • Method Summary

    Modifier and Type
    Method
    Description
    createQueueForTopic(String queueName, String topicName)
    This is only called when a user requests to read data from a topic.
    long
    Retrieves the size of the backlog (in bytes) for the specified queue.
    boolean
    Determines if the specified queue is non-exclusive.
  • Method Details

    • isQueueNonExclusive

      boolean isQueueNonExclusive(String queueName) throws IOException
      Determines if the specified queue is non-exclusive. In Solace, non-exclusive queues allow multiple consumers to receive messages from the queue.
      Throws:
      IOException
    • createQueueForTopic

      Queue createQueueForTopic(String queueName, String topicName) throws IOException
      This is only called when a user requests to read data from a topic. This method creates a new queue on the Solace broker and associates it with the specified topic. This ensures that messages published to the topic are delivered to the queue, allowing consumers to receive them.
      Throws:
      IOException
    • getBacklogBytes

      long getBacklogBytes(String queueName) throws IOException
      Retrieves the size of the backlog (in bytes) for the specified queue. The backlog represents the amount of data in messages that are waiting to be delivered to consumers.
      Throws:
      IOException