Record Class ReplicatorOrder
java.lang.Object
java.lang.Record
io.clonecloudstore.replicator.model.ReplicatorOrder
-
Constructor Summary
ConstructorsConstructorDescriptionReplicatorOrder
(ReplicatorOrder from, ReplicatorConstants.Action action) ReplicatorOrder
(ReplicatorOrder from, String toSite) ReplicatorOrder
(String opId, String fromSite, String toSite, String clientId, String bucketName, ReplicatorConstants.Action action) ReplicatorOrder
(String opId, String fromSite, String toSite, String clientId, String bucketName, String objectName, long size, String hash, ReplicatorConstants.Action action) Creates an instance of aReplicatorOrder
record class. -
Method Summary
Modifier and TypeMethodDescriptionaction()
Returns the value of theaction
record component.Returns the value of thebucketName
record component.clientId()
Returns the value of theclientId
record component.boolean
Indicates whether some other object is "equal to" this one.fromSite()
Returns the value of thefromSite
record component.hash()
Returns the value of thehash
record component.int
hashCode()
Returns a hash code value for this object.Returns the value of theobjectName
record component.opId()
Returns the value of theopId
record component.long
size()
Returns the value of thesize
record component.toSite()
Returns the value of thetoSite
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
ReplicatorOrder
-
ReplicatorOrder
-
ReplicatorOrder
-
ReplicatorOrder
public ReplicatorOrder(String opId, String fromSite, String toSite, String clientId, String bucketName, String objectName, long size, String hash, ReplicatorConstants.Action action) Creates an instance of aReplicatorOrder
record class.- Parameters:
opId
- the value for theopId
record componentfromSite
- the value for thefromSite
record componenttoSite
- the value for thetoSite
record componentclientId
- the value for theclientId
record componentbucketName
- the value for thebucketName
record componentobjectName
- the value for theobjectName
record componentsize
- the value for thesize
record componenthash
- the value for thehash
record componentaction
- the value for theaction
record component
-
-
Method Details
-
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. -
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 '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
getHeaders
-
opId
Returns the value of theopId
record component.- Returns:
- the value of the
opId
record component
-
fromSite
Returns the value of thefromSite
record component.- Returns:
- the value of the
fromSite
record component
-
toSite
Returns the value of thetoSite
record component.- Returns:
- the value of the
toSite
record component
-
clientId
Returns the value of theclientId
record component.- Returns:
- the value of the
clientId
record component
-
bucketName
Returns the value of thebucketName
record component.- Returns:
- the value of the
bucketName
record component
-
objectName
Returns the value of theobjectName
record component.- Returns:
- the value of the
objectName
record component
-
size
public long size()Returns the value of thesize
record component.- Returns:
- the value of the
size
record component
-
hash
Returns the value of thehash
record component.- Returns:
- the value of the
hash
record component
-
action
Returns the value of theaction
record component.- Returns:
- the value of the
action
record component
-