Package com.github.ambry.router
Class PutBlobOptions
- java.lang.Object
-
- com.github.ambry.router.PutBlobOptions
-
public class PutBlobOptions extends java.lang.Object
Represents any options associated with a putBlob request.
-
-
Field Summary
Fields Modifier and Type Field Description static PutBlobOptions
DEFAULT
-
Constructor Summary
Constructors Constructor Description PutBlobOptions(boolean chunkUpload, long maxUploadSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
long
getMaxUploadSize()
int
hashCode()
boolean
isChunkUpload()
java.lang.String
toString()
-
-
-
Field Detail
-
DEFAULT
public static final PutBlobOptions DEFAULT
-
-
Constructor Detail
-
PutBlobOptions
public PutBlobOptions(boolean chunkUpload, long maxUploadSize)
- Parameters:
chunkUpload
-true
to indicate that theputBlob()
call is for a single data chunk of a stitched blob.maxUploadSize
- the max size of the uploaded blob in bytes. To be enforced by the router. Can be null.
-
-
Method Detail
-
isChunkUpload
public boolean isChunkUpload()
- Returns:
true
to indicate that theputBlob()
call is for a single data chunk of a stitched blob.
-
getMaxUploadSize
public long getMaxUploadSize()
- Returns:
- the max size of the uploaded blob in bytes. To be enforced by the router. Can be null.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-