public class EPPPollQueueMgr
extends java.lang.Object
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.| Modifier and Type | Method and Description |
|---|---|
EPPResponse |
delete(java.lang.Object aRecp,
java.lang.String aMsgId,
java.lang.Object aContextData)
Delete object from data source
|
EPPResponse |
get(java.lang.Object aRecp,
java.lang.Object aContextData)
Gets the
EPPResponse poll message from the data source |
EPPPollDataSource |
getDataSource()
Gets the poll queue data source
|
static EPPPollQueueMgr |
getInstance()
Gets instance of
EPPPollQueueMgr |
void |
put(java.lang.Object aRecp,
java.lang.String aKind,
java.lang.Object aData,
java.lang.Object aContextData)
Puts poll message into the poll data source
|
void |
register(EPPPollHandler aHandler)
Registers a poll handler.
|
void |
setDataSource(EPPPollDataSource aSource)
Registers the poll data source.
|
public static EPPPollQueueMgr getInstance()
EPPPollQueueMgrEPPPollQueueMgrpublic EPPPollDataSource getDataSource()
EPPPollDataSource if
defined;null otherwise.public void register(EPPPollHandler aHandler)
aHandler - Poll handler to register in the EPPPollQueueMgr.public void setDataSource(EPPPollDataSource aSource)
aSource - Poll data source to register in the EPPPollQueueMgr.public EPPResponse get(java.lang.Object aRecp, java.lang.Object aContextData) throws EPPPollQueueException
EPPResponse poll message from the data sourceaRecp - Server-specific recipient object that can be used to filter the
messages by the recipient.aContextData - Server context passed into the EPPPollDataSource.EPPResponseEPPPollQueueException - Unable to get the EPPResponse from data sourcepublic void put(java.lang.Object aRecp,
java.lang.String aKind,
java.lang.Object aData,
java.lang.Object aContextData)
throws EPPPollQueueException
aRecp - Recipient of the poll message, which represents the logical poll
queue.aKind - Kind of poll messageaData - Poll messageaContextData - Server context dataEPPPollQueueException - Error putting message in queuepublic EPPResponse delete(java.lang.Object aRecp, java.lang.String aMsgId, java.lang.Object aContextData) throws EPPPollQueueException
aRecp - Recipient of the poll message, which represents the logical poll
queue.aMsgId - Message identifier to deleteaContextData - Server context dataEPPResponse containing result of deleting the
poll messageEPPPollQueueException - Error deleting the message