public interface IMediaCacheStoreItemEvent
Interface for Store Item GC events
When an item within a store is about to be processed for removal this provides the detailed information of the item.
It gives the opportunity to alter the timing parameters of the item so to delay when it is next processed or allow it to be removed.
The default is for the item to be removed unless this is changed with
item.setItemRemove(false);
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
getBadItemTime() |
Gets the current bad item state
|
long |
getFreedSpaceTotal() |
Get the total space to be made available
|
String |
getItemName() |
Get the item name
|
int |
getItemNumber() |
Get this item number
|
boolean |
getItemRemove() |
Get the item remove flag
|
long |
getItemSize() |
Gets the item size in bytes
|
String |
getItemStorePath() |
Get the item store path
|
int |
getItemTotalCount() |
Get the total number of items to be processed
|
boolean |
getMaxTTLReached() |
Gets the MaxTTL reached state
|
boolean |
getMinTTLReached() |
Gets the MinTTL reached state
|
long |
getReleaseItemTime() |
Gets release time in milliseconds
|
void |
setBadItemTime(boolean state) |
Sets the state for bad item time
|
void |
setFreedSpaceTotal(long size) |
Set the total space to be made available
|
void |
setItemName(String name) |
Set the item name
|
void |
setItemNumber(int number) |
Set this item number
|
void |
setItemReleaseTime(long releaseTime) |
Sets the item current release time
|
void |
setItemRemove(boolean state) |
Set the item remove flag
|
void |
setItemSize(long size) |
Sets the item size in bytes
|
void |
setItemStorePath(String path) |
Set the item store path
|
void |
setItemTotalCount(int count) |
Set the total number of items to be processed
|
void |
setMaxTTLReached(boolean state) |
Sets the MaxTTL reached state
|
void |
setMinTTLReached(boolean state) |
Sets the MinTTL reached state
|
boolean getBadItemTime()
long getFreedSpaceTotal()
String getItemName()
int getItemNumber()
boolean getItemRemove()
long getItemSize()
String getItemStorePath()
int getItemTotalCount()
boolean getMaxTTLReached()
boolean getMinTTLReached()
long getReleaseItemTime()
void setBadItemTime(boolean state)
state - void setFreedSpaceTotal(long size)
size - void setItemName(String name)
name - void setItemNumber(int number)
number - void setItemReleaseTime(long releaseTime)
releaseTime - time in millisecondsvoid setItemRemove(boolean state)
state - void setItemSize(long size)
size - void setItemStorePath(String path)
path - void setItemTotalCount(int count)
count - void setMaxTTLReached(boolean state)
state - void setMinTTLReached(boolean state)
state -