Package com.verisign.epp.framework
Interface EPPPollDataSource
- All Known Implementing Classes:
PollDataSource
public interface EPPPollDataSource
Represents an EPPPollDataSource interface that is implemented by any class
that needs to manipulate their own data source.
-
Method Summary
Modifier and TypeMethodDescriptionintDeletes a message from a recipients poll queue my message identifier.Gets the next poll data record for the specified recipient.voidPuts a message in the poll queue associated withaRecp.
-
Method Details
-
get
Gets the next poll data record for the specified recipient. The concrete class used to specify the recipient is specific to the concreteEPPPollData.- Parameters:
aRecp- Recipient of the poll message. The concrete class is defined by the concreteEPPPollDataSource.aContextData- Server specific data that is passed through to the data source (i.e. database connection).- Returns:
- Next poll data record. The record is not removed from the recipients queue
- Throws:
EPPPollQueueException- Error getting message from queue
-
put
void put(Object aRecp, String aKind, Object aData, Object aContextData) throws EPPPollQueueException Puts a message in the poll queue associated withaRecp.- Parameters:
aRecp- Recipient of the poll message. The concrete class is defined by a concreteEPPPollDataSource.aKind- Defines the kind of the poll message. The kinds of messages supported is based on the concreteEPPPollDataSource.aData- Poll message data. The concrete class is specific to the concreteEPPPollDataSourceaContextData- Server specific data that is passed through to the data source (i.e. database connection).- Throws:
EPPPollQueueException- Error putting message in queue
-
delete
Deletes a message from a recipients poll queue my message identifier.- Parameters:
aRecp- Recipient queue. The concrete class is defined by the concreteEPPPollDataSource.aMsgId- identifier to deleteaContextData- Server specific data that is passed through to the data source (i.e. database connection).- Returns:
- Number of messages left in queue
- Throws:
EPPPollQueueException- Error deleting the message
-