Package ch.rswk.meta.engine
Record Class FileService.PendingUpload
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.FileService.PendingUpload
- Enclosing class:
FileService
private static record FileService.PendingUpload(String hash, String key, Path path, RandomAccessFile raf, AtomicInteger receivedBytes, UploadRequest request, com.codahale.metrics.Timer.Context timer)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thehashrecord component.private final StringThe field for thekeyrecord component.private final PathThe field for thepathrecord component.private final RandomAccessFileThe field for therafrecord component.private final AtomicIntegerThe field for thereceivedBytesrecord component.private final UploadRequestThe field for therequestrecord component.private final com.codahale.metrics.Timer.ContextThe field for thetimerrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePendingUpload(String hash, String key, Path path, RandomAccessFile raf, AtomicInteger receivedBytes, UploadRequest request, com.codahale.metrics.Timer.Context timer) Creates an instance of aPendingUploadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.hash()Returns the value of thehashrecord component.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.path()Returns the value of thepathrecord component.raf()Returns the value of therafrecord component.Returns the value of thereceivedBytesrecord component.request()Returns the value of therequestrecord component.com.codahale.metrics.Timer.Contexttimer()Returns the value of thetimerrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
hash
The field for thehashrecord component. -
key
The field for thekeyrecord component. -
path
The field for thepathrecord component. -
raf
The field for therafrecord component. -
receivedBytes
The field for thereceivedBytesrecord component. -
request
The field for therequestrecord component. -
timer
private final com.codahale.metrics.Timer.Context timerThe field for thetimerrecord component.
-
-
Constructor Details
-
PendingUpload
private PendingUpload(String hash, String key, Path path, RandomAccessFile raf, AtomicInteger receivedBytes, UploadRequest request, com.codahale.metrics.Timer.Context timer) Creates an instance of aPendingUploadrecord class.- Parameters:
hash- the value for thehashrecord componentkey- the value for thekeyrecord componentpath- the value for thepathrecord componentraf- the value for therafrecord componentreceivedBytes- the value for thereceivedBytesrecord componentrequest- the value for therequestrecord componenttimer- the value for thetimerrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
hash
Returns the value of thehashrecord component.- Returns:
- the value of the
hashrecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
raf
Returns the value of therafrecord component.- Returns:
- the value of the
rafrecord component
-
receivedBytes
Returns the value of thereceivedBytesrecord component.- Returns:
- the value of the
receivedBytesrecord component
-
request
Returns the value of therequestrecord component.- Returns:
- the value of the
requestrecord component
-
timer
public com.codahale.metrics.Timer.Context timer()Returns the value of thetimerrecord component.- Returns:
- the value of the
timerrecord component
-