Package com.verisign.epp.serverstub
Class PollDataSource
- java.lang.Object
-
- com.verisign.epp.serverstub.PollDataSource
-
- All Implemented Interfaces:
EPPPollDataSource
public class PollDataSource extends java.lang.Object implements 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 Constructor Description PollDataSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
delete(java.lang.Object aRecp, java.lang.String aMsgId, java.lang.Object aContextData)
Delete data from data source and return number of messagesEPPPollDataRecord
get(java.lang.Object aRecp, java.lang.Object aContextData)
Gets data from queuevoid
put(java.lang.Object aRecp, java.lang.String aKind, java.lang.Object aData, java.lang.Object aContextData)
Puts data into queue
-
-
-
Method Detail
-
get
public EPPPollDataRecord get(java.lang.Object aRecp, java.lang.Object aContextData) throws EPPPollQueueException
Gets data from queue- Specified by:
get
in 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;
null
otherwise. - Throws:
EPPPollQueueException
- Error getting message from queue
-
put
public void put(java.lang.Object aRecp, java.lang.String aKind, java.lang.Object aData, java.lang.Object aContextData)
Puts data into queue- Specified by:
put
in 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
public int delete(java.lang.Object aRecp, java.lang.String aMsgId, java.lang.Object aContextData) throws EPPPollQueueException
Delete data from data source and return number of messages- Specified by:
delete
in 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
-
-