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 aReplicatorOrderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of thebucketNamerecord component.clientId()Returns the value of theclientIdrecord component.booleanIndicates whether some other object is "equal to" this one.fromSite()Returns the value of thefromSiterecord component.hash()Returns the value of thehashrecord component.inthashCode()Returns a hash code value for this object.Returns the value of theobjectNamerecord component.opId()Returns the value of theopIdrecord component.longsize()Returns the value of thesizerecord component.toSite()Returns the value of thetoSiterecord 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 aReplicatorOrderrecord class.- Parameters:
opId- the value for theopIdrecord componentfromSite- the value for thefromSiterecord componenttoSite- the value for thetoSiterecord componentclientId- the value for theclientIdrecord componentbucketName- the value for thebucketNamerecord componentobjectName- the value for theobjectNamerecord componentsize- the value for thesizerecord componenthash- the value for thehashrecord componentaction- the value for theactionrecord 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 theopIdrecord component.- Returns:
- the value of the
opIdrecord component
-
fromSite
Returns the value of thefromSiterecord component.- Returns:
- the value of the
fromSiterecord component
-
toSite
Returns the value of thetoSiterecord component.- Returns:
- the value of the
toSiterecord component
-
clientId
Returns the value of theclientIdrecord component.- Returns:
- the value of the
clientIdrecord component
-
bucketName
Returns the value of thebucketNamerecord component.- Returns:
- the value of the
bucketNamerecord component
-
objectName
Returns the value of theobjectNamerecord component.- Returns:
- the value of the
objectNamerecord component
-
size
public long size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
hash
Returns the value of thehashrecord component.- Returns:
- the value of the
hashrecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-