public class PollDataSource extends java.lang.Object implements EPPPollDataSource
Constructor and Description |
---|
PollDataSource() |
Modifier and Type | Method and Description |
---|---|
int |
delete(java.lang.Object aRecp,
java.lang.String aMsgId,
java.lang.Object aContextData)
Delete data from data source and return number of messages
|
EPPPollDataRecord |
get(java.lang.Object aRecp,
java.lang.Object aContextData)
Gets data from queue
|
void |
put(java.lang.Object aRecp,
java.lang.String aKind,
java.lang.Object aData,
java.lang.Object aContextData)
Puts data into queue
|
public EPPPollDataRecord get(java.lang.Object aRecp, java.lang.Object aContextData) throws EPPPollQueueException
get
in interface EPPPollDataSource
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.null
otherwise.EPPPollQueueException
- Error getting message from queuepublic void put(java.lang.Object aRecp, java.lang.String aKind, java.lang.Object aData, java.lang.Object aContextData)
put
in interface EPPPollDataSource
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.public int delete(java.lang.Object aRecp, java.lang.String aMsgId, java.lang.Object aContextData) throws EPPPollQueueException
delete
in interface EPPPollDataSource
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.EPPPollQueueException
- Error deleting message