Class PollMessage
- All Implemented Interfaces:
Buildable
,TransferData.TransferServerApproveEntity
,UnsafeSerializable
,Serializable
,Cloneable
- Direct Known Subclasses:
PollMessage.Autorenew
,PollMessage.OneTime
Poll messages are not delivered until their eventTime
has passed. Poll messages can
be speculatively enqueued for future delivery, and then modified or deleted before that date has
passed. Unlike most other entities in the database, which are marked as deleted but otherwise
retained for historical purposes, poll messages are truly deleted once they have been delivered
and ACKed.
Poll messages have a reference to the revision id of the HistoryEntry
that resulted in
their creation or re-creation, in case of transfer cancellation/rejection. The revision ids are
not used directly by the Java code, but their presence in the database makes it easier to
diagnose potential issues related to poll messages.
Poll messages are identified externally by registrars using the format defined in PollMessageExternalKeyConverter
.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
An autorenew poll message which recurs annually.static class
PollMessage.Builder<T extends PollMessage,
B extends PollMessage.Builder<?, ?>> Builder forPollMessage
because it is immutable.static class
A one-time poll message.static enum
Indicates the type of entity the poll message is for.Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotHydrate, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
Nested classes/interfaces inherited from interface google.registry.model.Buildable
Buildable.GenericBuilder<S,
B extends Buildable.GenericBuilder<?, ?>>, Buildable.Overlayable<T> -
Field Summary
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract PollMessage.Builder
<?, ?> Override Buildable.asBuilder() to give this method stronger typing.abstract VKey
<? extends PollMessage> Returns the contact repo id.Returns the domain repo id.org.joda.time.DateTime
Gets the underlying history revision id, regardless of the type of the resource.Returns the host repo id.getId()
getMsg()
Gets the repo ID of the underlying resource that the PollMessage is for, regardless of the type of the resource.abstract com.google.common.collect.ImmutableList
<EppResponse.ResponseData> getType()
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
Constructor Details
-
PollMessage
public PollMessage()
-
-
Method Details
-
getId
-
getRegistrarId
-
getEventTime
public org.joda.time.DateTime getEventTime() -
getMsg
-
getDomainRepoId
Returns the domain repo id.This may only be used on a Domain poll event.
-
getContactRepoId
Returns the contact repo id.This may only be used on a
Contact
poll event. -
getHostRepoId
Returns the host repo id.This may only be used on a Host poll event.
-
getResourceId
Gets the repo ID of the underlying resource that the PollMessage is for, regardless of the type of the resource. -
getHistoryRevisionId
Gets the underlying history revision id, regardless of the type of the resource. -
getType
-
createVKey
- Specified by:
createVKey
in interfaceTransferData.TransferServerApproveEntity
- Overrides:
createVKey
in classImmutableObject
-
getResponseData
-
asBuilder
Override Buildable.asBuilder() to give this method stronger typing.
-