public static class IstiTimeObjectCache.BasicTimeObjectEntry extends java.lang.Object implements IstiTimeObjectCache.TimeObjectEntry
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
dataObj |
protected int |
dataSize |
protected java.lang.String |
keyStr |
protected long |
timeGenerated |
Modifier | Constructor and Description |
---|---|
protected |
BasicTimeObjectEntry()
No-argument constructor for subclasses.
|
|
BasicTimeObjectEntry(long timeGenerated,
java.lang.Object dataObj,
java.lang.String keyStr)
Creates a message object cache entry.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getDataObj()
Returns the data object.
|
int |
getDataSize()
Returns the data size for the entry object.
|
java.lang.String |
getKeyStr()
Returns the key string.
|
long |
getTimeGenerated()
Returns the time the object was generated.
|
void |
setDataSize(int val)
Sets the data size for the entry object.
|
protected long timeGenerated
protected java.lang.Object dataObj
protected java.lang.String keyStr
protected int dataSize
public BasicTimeObjectEntry(long timeGenerated, java.lang.Object dataObj, java.lang.String keyStr)
timeGenerated
- the time the message was generated.dataObj
- data object.keyStr
- key string (to be used as a lookup key into the cache).protected BasicTimeObjectEntry()
public long getTimeGenerated()
getTimeGenerated
in interface IstiTimeObjectCache.TimeObjectEntry
public java.lang.Object getDataObj()
getDataObj
in interface IstiTimeObjectCache.TimeObjectEntry
public java.lang.String getKeyStr()
getKeyStr
in interface IstiTimeObjectCache.TimeObjectEntry
public void setDataSize(int val)
val
- the data size value to use.public int getDataSize()
getDataSize
in interface IstiTimeObjectCache.TimeObjectEntry