Package google.registry.flows.poll
Class PollRequestFlow
java.lang.Object
google.registry.flows.poll.PollRequestFlow
- All Implemented Interfaces:
Flow
,TransactionalFlow
@IsolationLevel(TRANSACTION_READ_COMMITTED)
public final class PollRequestFlow
extends Object
implements TransactionalFlow
An EPP flow for requesting
PollMessage
s.
This flow uses an eventually consistent query to return the oldest poll message for the
registrar, as well as the total number of pending messages. Note that poll messages whose event
time is in the future (i.e. they are speculative and could still be changed or rescinded) are
ignored. The externally visible id for the poll message that the registrar sees is generated by
PollMessageExternalKeyConverter
.
- Expected Error
PollRequestFlow.UnexpectedMessageIdException
-
Method Summary
Modifier and TypeMethodDescriptionrun()
Executes an EPP "flow" and returns a response object (or in the specific case of the "hello" flow a greeting object) that can be converted to XML and returned to the caller.
-
Method Details
-
run
Description copied from interface:Flow
Executes an EPP "flow" and returns a response object (or in the specific case of the "hello" flow a greeting object) that can be converted to XML and returned to the caller.Flows should have
Flow.run()
called once per instance. If a flow needs to be retried, a new instance should be created.Flows should get all of their parameters via injection off of
FlowComponent
.- Specified by:
run
in interfaceFlow
- Throws:
EppException
-