Class EPPPollQueueMgr


  • public class EPPPollQueueMgr
    extends java.lang.Object
    The EPPPollQueueMgr is used to handle the poll command, which allows to discover and retrieve client service messages from a server. Once GenHandler issues the get method, EPPPollQueueMgr receives data from EPPPollDataSource and then returns concrete EPPResponse back to GenHandler.
    • Method Detail

      • getInstance

        public static EPPPollQueueMgr getInstance()
        Gets instance of EPPPollQueueMgr
        Returns:
        Gets the Singleton instance of EPPPollQueueMgr
      • register

        public void register​(EPPPollHandler aHandler)
        Registers a poll handler.
        Parameters:
        aHandler - Poll handler to register in the EPPPollQueueMgr.
      • setDataSource

        public void setDataSource​(EPPPollDataSource aSource)
        Registers the poll data source.
        Parameters:
        aSource - Poll data source to register in the EPPPollQueueMgr.
      • put

        public void put​(java.lang.Object aRecp,
                        java.lang.String aKind,
                        java.lang.Object aData,
                        java.lang.Object aContextData)
                 throws EPPPollQueueException
        Puts poll message into the poll data source
        Parameters:
        aRecp - Recipient of the poll message, which represents the logical poll queue.
        aKind - Kind of poll message
        aData - Poll message
        aContextData - Server context data
        Throws:
        EPPPollQueueException - Error putting message in queue
      • delete

        public EPPResponse delete​(java.lang.Object aRecp,
                                  java.lang.String aMsgId,
                                  java.lang.Object aContextData)
                           throws EPPPollQueueException
        Delete object from data source
        Parameters:
        aRecp - Recipient of the poll message, which represents the logical poll queue.
        aMsgId - Message identifier to delete
        aContextData - Server context data
        Returns:
        EPPResponse EPPResponse containing result of deleting the poll message
        Throws:
        EPPPollQueueException - Error deleting the message