Package com.verisign.epp.framework
Class EPPPollQueueMgr
- java.lang.Object
-
- com.verisign.epp.framework.EPPPollQueueMgr
-
public class EPPPollQueueMgr extends java.lang.ObjectTheEPPPollQueueMgris used to handle the poll command, which allows to discover and retrieve client service messages from a server. OnceGenHandlerissues the get method,EPPPollQueueMgrreceives data fromEPPPollDataSourceand then returns concreteEPPResponseback toGenHandler.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EPPResponsedelete(java.lang.Object aRecp, java.lang.String aMsgId, java.lang.Object aContextData)Delete object from data sourceEPPResponseget(java.lang.Object aRecp, java.lang.Object aContextData)Gets theEPPResponsepoll message from the data sourceEPPPollDataSourcegetDataSource()Gets the poll queue data sourcestatic EPPPollQueueMgrgetInstance()Gets instance ofEPPPollQueueMgrvoidput(java.lang.Object aRecp, java.lang.String aKind, java.lang.Object aData, java.lang.Object aContextData)Puts poll message into the poll data sourcevoidregister(EPPPollHandler aHandler)Registers a poll handler.voidsetDataSource(EPPPollDataSource aSource)Registers the poll data source.
-
-
-
Method Detail
-
getInstance
public static EPPPollQueueMgr getInstance()
Gets instance ofEPPPollQueueMgr- Returns:
- Gets the Singleton instance of
EPPPollQueueMgr
-
getDataSource
public EPPPollDataSource getDataSource()
Gets the poll queue data source- Returns:
- Gets the registered
EPPPollDataSourceif defined;nullotherwise.
-
register
public void register(EPPPollHandler aHandler)
Registers a poll handler.- Parameters:
aHandler- Poll handler to register in theEPPPollQueueMgr.
-
setDataSource
public void setDataSource(EPPPollDataSource aSource)
Registers the poll data source.- Parameters:
aSource- Poll data source to register in theEPPPollQueueMgr.
-
get
public EPPResponse get(java.lang.Object aRecp, java.lang.Object aContextData) throws EPPPollQueueException
Gets theEPPResponsepoll message from the data source- Parameters:
aRecp- Server-specific recipient object that can be used to filter the messages by the recipient.aContextData- Server context passed into theEPPPollDataSource.- Returns:
- EPPResponse Returns the concrete
EPPResponse - Throws:
EPPPollQueueException- Unable to get theEPPResponsefrom data source
-
put
public void put(java.lang.Object aRecp, java.lang.String aKind, java.lang.Object aData, java.lang.Object aContextData) throws EPPPollQueueExceptionPuts poll message into the poll data source- Parameters:
aRecp- Recipient of the poll message, which represents the logical poll queue.aKind- Kind of poll messageaData- Poll messageaContextData- 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 deleteaContextData- Server context data- Returns:
- EPPResponse
EPPResponsecontaining result of deleting the poll message - Throws:
EPPPollQueueException- Error deleting the message
-
-