Package com.verisign.epp.framework
Class EPPPollQueueMgr
- java.lang.Object
-
- com.verisign.epp.framework.EPPPollQueueMgr
-
public class EPPPollQueueMgr extends java.lang.Object
TheEPPPollQueueMgr
is used to handle the poll command, which allows to discover and retrieve client service messages from a server. OnceGenHandler
issues the get method,EPPPollQueueMgr
receives data fromEPPPollDataSource
and then returns concreteEPPResponse
back toGenHandler
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EPPResponse
delete(java.lang.Object aRecp, java.lang.String aMsgId, java.lang.Object aContextData)
Delete object from data sourceEPPResponse
get(java.lang.Object aRecp, java.lang.Object aContextData)
Gets theEPPResponse
poll message from the data sourceEPPPollDataSource
getDataSource()
Gets the poll queue data sourcestatic EPPPollQueueMgr
getInstance()
Gets instance ofEPPPollQueueMgr
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 sourcevoid
register(EPPPollHandler aHandler)
Registers a poll handler.void
setDataSource(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
EPPPollDataSource
if defined;null
otherwise.
-
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 theEPPResponse
poll 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 theEPPResponse
from data source
-
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 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
EPPResponse
containing result of deleting the poll message - Throws:
EPPPollQueueException
- Error deleting the message
-
-