com.supermap.messagequeue

Class STOMPManager



  • public class STOMPManager
    extends InternalHandle
    STOMP manager class. Message bus client scheme based on STOMP protocol
    • Constructor Summary

      Constructors 
      Constructor and Description
      STOMPManager()
      Constructor
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean connection(java.lang.String uri, java.lang.String usrName, java.lang.String password)
      Builds connection
      void disconnection()
      Disconnect
      static void initializeLibrary()
      Initialization library Initialize the library before using, close the library after finished
      STOMPReceiver newReceiver(boolean useTopic, java.lang.String name, java.lang.String clientId)
      Creates a receiver
      STOMPSender newSender(boolean useTopic, java.lang.String name)
      Creates a sender
      static void shutdownLibrary()
      Close library Close the library after finished
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • STOMPManager

        public STOMPManager()
        Constructor
    • Method Detail

      • connection

        public boolean connection(java.lang.String uri,
                                  java.lang.String usrName,
                                  java.lang.String password)
        Builds connection
        Parameters:
        uri - Service URI
        usrName - user name
        password - user password
        Returns:
        If connected successfully, returns true; otherwise, returns false.
      • disconnection

        public void disconnection()
        Disconnect
      • newSender

        public STOMPSender newSender(boolean useTopic,
                                     java.lang.String name)
        Creates a sender
        Parameters:
        useTopic - Whether to use Topic mode
        name - the destination name
        Returns:
        The new sender
      • newReceiver

        public STOMPReceiver newReceiver(boolean useTopic,
                                         java.lang.String name,
                                         java.lang.String clientId)
        Creates a receiver
        Parameters:
        useTopic - Whether to use Topic mode
        name - the destination name
        clientId - client ID
        Returns:
        The new receiver
      • initializeLibrary

        public static void initializeLibrary()
        Initialization library

        Initialize the library before using, close the library after finished

      • shutdownLibrary

        public static void shutdownLibrary()
        Close library

        Close the library after finished