public interface IStoredList<T> extends ICollection<T>, IHashEntry<Object,IStoredList<T>>, IObjectsList
Modifier and Type | Method and Description |
---|---|
IObjectInfo<T> |
addUnlocked(T subject)
Store an element in the list, while the SL is unlocked .
|
void |
dump(org.slf4j.Logger logger,
String msg)
Dump list content, used for Debug.
|
void |
freeSLHolder(IStoredListIterator<T> slh)
Called by an outside scan that wants to quit the scan and return the slholder to the resource
pool.
|
IObjectInfo<T> |
getHead()
Returns the first element in the list (fifo)
|
T |
getObjectFromHead()
Returns the value of the first element in the list (fifo)
|
boolean |
invalidate()
Sets an indication that this StoredList is invalid.
|
boolean |
optimizeScanForSingleObject()
return true if we can save iterator creation and get a single entry
|
void |
remove(IObjectInfo<T> oi)
Remove an element described by ObjectInfo.
|
void |
removeUnlocked(IObjectInfo<T> oi)
Remove an element described by ObjectInfo, while the SL is unlocked.
|
add, contains, establishListScan, establishListScan, isEmpty, isMultiObjectCollection, next, removeByObject, size
getHashCode, getKey, getValue, isNativeHashEntry
isIterator
IObjectInfo<T> getHead()
T getObjectFromHead()
boolean optimizeScanForSingleObject()
void freeSLHolder(IStoredListIterator<T> slh)
slh
- Holder resource to return to pool; can be null
.void remove(IObjectInfo<T> oi)
oi
- an existing element between Tail and Headvoid removeUnlocked(IObjectInfo<T> oi)
oi
- an existing element between Tail and HeadIObjectInfo<T> addUnlocked(T subject)
subject
- element to store.null
if
StoredList has been invalidated.boolean invalidate()
true
if StoredList was set to invalid; false
otherwise.void dump(org.slf4j.Logger logger, String msg)
logger
- logger to usemsg
- message to add in logCopyright © GigaSpaces.