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 String
The field for thehash
record component.private final String
The field for thekey
record component.private final Path
The field for thepath
record component.private final RandomAccessFile
The field for theraf
record component.private final AtomicInteger
The field for thereceivedBytes
record component.private final UploadRequest
The field for therequest
record component.private final com.codahale.metrics.Timer.Context
The field for thetimer
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
PendingUpload
(String hash, String key, Path path, RandomAccessFile raf, AtomicInteger receivedBytes, UploadRequest request, com.codahale.metrics.Timer.Context timer) Creates an instance of aPendingUpload
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.hash()
Returns the value of thehash
record component.final int
hashCode()
Returns a hash code value for this object.key()
Returns the value of thekey
record component.path()
Returns the value of thepath
record component.raf()
Returns the value of theraf
record component.Returns the value of thereceivedBytes
record component.request()
Returns the value of therequest
record component.com.codahale.metrics.Timer.Context
timer()
Returns the value of thetimer
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
hash
The field for thehash
record component. -
key
The field for thekey
record component. -
path
The field for thepath
record component. -
raf
The field for theraf
record component. -
receivedBytes
The field for thereceivedBytes
record component. -
request
The field for therequest
record component. -
timer
private final com.codahale.metrics.Timer.Context timerThe field for thetimer
record 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 aPendingUpload
record class.- Parameters:
hash
- the value for thehash
record componentkey
- the value for thekey
record componentpath
- the value for thepath
record componentraf
- the value for theraf
record componentreceivedBytes
- the value for thereceivedBytes
record componentrequest
- the value for therequest
record componenttimer
- the value for thetimer
record 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 thehash
record component.- Returns:
- the value of the
hash
record component
-
key
Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-
path
Returns the value of thepath
record component.- Returns:
- the value of the
path
record component
-
raf
Returns the value of theraf
record component.- Returns:
- the value of the
raf
record component
-
receivedBytes
Returns the value of thereceivedBytes
record component.- Returns:
- the value of the
receivedBytes
record component
-
request
Returns the value of therequest
record component.- Returns:
- the value of the
request
record component
-
timer
public com.codahale.metrics.Timer.Context timer()Returns the value of thetimer
record component.- Returns:
- the value of the
timer
record component
-