Package com.github.ambry.messageformat
Class BlobInfo
- java.lang.Object
-
- com.github.ambry.messageformat.BlobInfo
-
public class BlobInfo extends java.lang.Object
A BlobInfo class that contains both the blob property, the usermetadata and the lifeVersion for the blob.
-
-
Constructor Summary
Constructors Constructor Description BlobInfo(BlobProperties blobProperties, byte[] userMetadata)
Constructor to create aBlobInfo
.BlobInfo(BlobProperties blobProperties, byte[] userMetadata, short lifeVersion)
Constructor to create aBlobInfo
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlobProperties
getBlobProperties()
short
getLifeVersion()
byte[]
getUserMetadata()
void
setLifeVersion(short lifeVersion)
Set the lifeVersion of this blob.
-
-
-
Constructor Detail
-
BlobInfo
public BlobInfo(BlobProperties blobProperties, byte[] userMetadata)
Constructor to create aBlobInfo
.- Parameters:
blobProperties
- TheBlobProperties
of this blob.userMetadata
- The user metadata of this blob.
-
BlobInfo
public BlobInfo(BlobProperties blobProperties, byte[] userMetadata, short lifeVersion)
Constructor to create aBlobInfo
.- Parameters:
blobProperties
- TheBlobProperties
of this blob.userMetadata
- The user metadata of this blob.lifeVersion
- The lifeVersion of this blob.
-
-
Method Detail
-
getBlobProperties
public BlobProperties getBlobProperties()
- Returns:
- The
BlobProperties
of this blob.
-
getUserMetadata
public byte[] getUserMetadata()
- Returns:
- The user metadata of this blob.
-
setLifeVersion
public void setLifeVersion(short lifeVersion)
Set the lifeVersion of this blob.- Parameters:
lifeVersion
- The lifeVersion to set.
-
getLifeVersion
public short getLifeVersion()
- Returns:
- The lifeVersion of this blob.
-
-