public class MetaInfo extends Object implements ChangeCountable
| Constructor and Description |
|---|
MetaInfo()
Create a new MetaInfo with default values.
|
MetaInfo(MetaInfo metaInfo)
Create a new MetaInfo with a copy of the fields in the given metaInfo.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear fields and reset to default values.
|
long |
getChangeCount()
Get the change count, which is incremented each time this object is changed.
|
Name.Component |
getFinalBlockId() |
Name.Component |
getFinalBlockID()
Deprecated.
Use getFinalBlockId.
|
double |
getFreshnessPeriod() |
int |
getFreshnessSeconds()
Deprecated.
Use getFreshnessPeriod.
|
int |
getOtherTypeCode()
Get the content type code from the packet which is other than a recognized
ContentType enum value.
|
ContentType |
getType()
Get the content type.
|
void |
setFinalBlockId(Name.Component finalBlockId) |
void |
setFinalBlockID(Name.Component finalBlockId)
Deprecated.
Use setFinalBlockId.
|
void |
setFreshnessPeriod(double freshnessPeriod) |
void |
setFreshnessSeconds(int freshnessSeconds)
Deprecated.
Use setFreshnessPeriod.
|
void |
setOtherTypeCode(int otherTypeCode)
Set the packet's content type code to use when the content type enum is
ContentType.OTHER_CODE.
|
void |
setType(ContentType type)
Set the content type.
|
public MetaInfo()
public MetaInfo(MetaInfo metaInfo)
metaInfo - The MetaInfo to copy.public final ContentType getType()
public final int getOtherTypeCode()
public final double getFreshnessPeriod()
public final int getFreshnessSeconds()
public final Name.Component getFinalBlockId()
public final Name.Component getFinalBlockID()
public final void setType(ContentType type)
type - The content type enum value. If the packet's content type is
not a recognized ContentType enum value, use ContentType.OTHER_CODE and
call setOtherTypeCode().public final void setOtherTypeCode(int otherTypeCode)
otherTypeCode - The packet's unrecognized content type code, which
must be non-negative.public final void setFreshnessPeriod(double freshnessPeriod)
public final void setFreshnessSeconds(int freshnessSeconds)
public final void setFinalBlockId(Name.Component finalBlockId)
public final void setFinalBlockID(Name.Component finalBlockId)
public final void clear()
public final long getChangeCount()
getChangeCount in interface ChangeCountableCopyright © 2019. All rights reserved.