Package google.registry.rde
Record Class PendingDeposit
java.lang.Object
java.lang.Record
google.registry.rde.PendingDeposit
- Record Components:
manual
- True if deposits should be generated via manual operation, which does not update the cursor, and saves the generated deposits in a special manual subdirectory tree.tld
- TLD for which a deposit should be generated.watermarkStr
- String representation of the watermark date for which a deposit should be generated.mode
- Which type of deposit to generate: full (RDE) or thin (BRDA).cursor
- The cursor type to update (not used in manual operation).intervalStr
- String representation of the amount of time to increment the cursor (not used in manual operation).directoryWithTrailingSlash
- Subdirectory of bucket/manual in which files should be placed, including a trailing slash (used only in manual operation).revision
- Revision number for generated files; if absent, use the next available in the sequence (used only in manual operation).
- All Implemented Interfaces:
Serializable
public record PendingDeposit(boolean manual, String tld, String watermarkStr, RdeMode mode, @Nullable Cursor.CursorType cursor, @Nullable String intervalStr, @Nullable String directoryWithTrailingSlash, @Nullable Integer revision)
extends Record
implements Serializable
Container representing a single RDE or BRDA XML escrow deposit that needs to be created.
There are some @Nullable
fields here because Optionals aren't Serializable.
Note that this class is serialized in two ways: by Beam pipelines using custom serialization
mechanism and the Coder
API, and by Java serialization when passed as command-line
arguments (see RdePipeline#decodePendingDeposits
). The latter requires safe
deserialization because the data crosses credential boundaries (See
SafeObjectInputStream
).
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A deterministic coder forPendingDeposit
used during a GroupBy transform. -
Constructor Summary
ConstructorDescriptionPendingDeposit
(boolean manual, String tld, String watermarkStr, RdeMode mode, Cursor.CursorType cursor, String intervalStr, String directoryWithTrailingSlash, Integer revision) Creates an instance of aPendingDeposit
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PendingDeposit
create
(String tld, org.joda.time.DateTime watermark, RdeMode mode, Cursor.CursorType cursor, org.joda.time.Duration interval) static PendingDeposit
createInManualOperation
(String tld, org.joda.time.DateTime watermark, RdeMode mode, String directoryWithTrailingSlash, Integer revision) cursor()
Returns the value of thecursor
record component.Returns the value of thedirectoryWithTrailingSlash
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.org.joda.time.Duration
interval()
Returns the value of theintervalStr
record component.boolean
manual()
Returns the value of themanual
record component.mode()
Returns the value of themode
record component.revision()
Returns the value of therevision
record component.tld()
Returns the value of thetld
record component.final String
toString()
Returns a string representation of this record class.org.joda.time.DateTime
Returns the value of thewatermarkStr
record component.
-
Constructor Details
-
PendingDeposit
public PendingDeposit(boolean manual, String tld, String watermarkStr, RdeMode mode, @Nullable Cursor.CursorType cursor, @Nullable String intervalStr, @Nullable String directoryWithTrailingSlash, @Nullable Integer revision) Creates an instance of aPendingDeposit
record class.- Parameters:
manual
- the value for themanual
record componenttld
- the value for thetld
record componentwatermarkStr
- the value for thewatermarkStr
record componentmode
- the value for themode
record componentcursor
- the value for thecursor
record componentintervalStr
- the value for theintervalStr
record componentdirectoryWithTrailingSlash
- the value for thedirectoryWithTrailingSlash
record componentrevision
- the value for therevision
record component
-
-
Method Details
-
watermark
public org.joda.time.DateTime watermark() -
interval
public org.joda.time.Duration interval() -
create
public static PendingDeposit create(String tld, org.joda.time.DateTime watermark, RdeMode mode, Cursor.CursorType cursor, org.joda.time.Duration interval) -
createInManualOperation
public static PendingDeposit createInManualOperation(String tld, org.joda.time.DateTime watermark, RdeMode mode, String directoryWithTrailingSlash, @Nullable Integer revision) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
manual
public boolean manual()Returns the value of themanual
record component.- Returns:
- the value of the
manual
record component
-
tld
Returns the value of thetld
record component.- Returns:
- the value of the
tld
record component
-
watermarkStr
Returns the value of thewatermarkStr
record component.- Returns:
- the value of the
watermarkStr
record component
-
mode
Returns the value of themode
record component.- Returns:
- the value of the
mode
record component
-
cursor
Returns the value of thecursor
record component.- Returns:
- the value of the
cursor
record component
-
intervalStr
Returns the value of theintervalStr
record component.- Returns:
- the value of the
intervalStr
record component
-
directoryWithTrailingSlash
Returns the value of thedirectoryWithTrailingSlash
record component.- Returns:
- the value of the
directoryWithTrailingSlash
record component
-
revision
Returns the value of therevision
record component.- Returns:
- the value of the
revision
record component
-