Package com.verisign.epp.serverstub
Class PollDataSource
java.lang.Object
com.verisign.epp.serverstub.PollDataSource
- All Implemented Interfaces:
EPPPollDataSource
The <PollDataSource> is registered and used by EPPPollQueueMgr to
demostrate how data are stored into a queue. The data source can be files,
databases or others.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintDelete data from data source and return number of messagesGets data from queuevoidPuts data into queue
-
Constructor Details
-
PollDataSource
public PollDataSource()
-
-
Method Details
-
get
Gets data from queue- Specified by:
getin interfaceEPPPollDataSource- Parameters:
aRecp- Receipt message queue. Not used by the Server Stub.aContextData- Server specific data that is passed through to the data source (i.e. database connection). Not used by the Server Stub.- Returns:
- EPPPollDataRecord if exists;
nullotherwise. - Throws:
EPPPollQueueException- Error getting message from queue
-
put
Puts data into queue- Specified by:
putin interfaceEPPPollDataSource- Parameters:
aRecp- Message recipient. Not used in Server Stub.aKind- The type of response dataaData- Message data to put in queueaContextData- Server specific data that is passed through to the data source (i.e. database connection). Not used by the Server Stub.
-
delete
Delete data from data source and return number of messages- Specified by:
deletein interfaceEPPPollDataSource- Parameters:
aRecp- Recipient queue. Not used in Server Stub.aMsgId- Message to delete. Not used in Server Stub, since the Server Stub will delete the top message of queueaContextData- Server specific data that is passed through to the data source (i.e. database connection). Not used by the Server Stub.- Returns:
- int Number of messages left in queue
- Throws:
EPPPollQueueException- Error deleting message
-