Package com.github.ambry.router
Class ChunkInfo
- java.lang.Object
-
- com.github.ambry.router.ChunkInfo
-
public class ChunkInfo extends java.lang.Object
Represents a data chunk to be stitched by aRouter.stitchBlob(com.github.ambry.messageformat.BlobProperties, byte[], java.util.List<com.github.ambry.router.ChunkInfo>, com.github.ambry.commons.Callback<java.lang.String>)
call.
-
-
Constructor Summary
Constructors Constructor Description ChunkInfo(java.lang.String blobId, long chunkSizeInBytes, long expirationTimeInMs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getBlobId()
long
getChunkSizeInBytes()
long
getExpirationTimeInMs()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getBlobId
public java.lang.String getBlobId()
- Returns:
- the blob ID for the chunk.
-
getChunkSizeInBytes
public long getChunkSizeInBytes()
- Returns:
- the size of the chunk content in bytes.
-
getExpirationTimeInMs
public long getExpirationTimeInMs()
- Returns:
- the expiration time of the chunk in milliseconds.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-