|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.serverstub.PollDataSource
public class PollDataSource
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 | |
---|---|
PollDataSource()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PollDataSource()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |