|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RealtimeListAccess<E>
The Realtime list access interface to provide more facility to list access for easier real-time access.
| Method Summary | |
|---|---|
int |
getNumberOfMultiUpdated(Map<String,Long> sinceTimes)
Gets the number of updated elements based on the of multi-value since time. |
int |
getNumberOfNewer(E e)
Gets the number of newer elements based on the provided element. |
int |
getNumberOfNewer(Long sinceTime)
Gets the number of newer elements based on the updated time. |
int |
getNumberOfOlder(E e)
Gets the number of older elements based on the provided element. |
int |
getNumberOfOlder(Long sinceTime)
Gets the number of older elements based on the updated time. |
int |
getSize()
Overrides its parent interface to avoid checked-exception. |
List<E> |
getUpadtedActivities(Long sinceTime,
int limit)
Gets get updated activities base on since time. |
E[] |
load(int index,
int limit)
Overrides its parent interface to avoid checked-exception. |
List<E> |
loadAsList(int index,
int limit)
Loads items as list instead of array as from load(int, int). |
List<E> |
loadNewer(E e,
int length)
Loads newer elements based on the provided element. |
List<E> |
loadNewer(Long sinceTime,
int limit)
Loads newer elements based on the provided element. |
List<E> |
loadOlder(E e,
int length)
Loads older elements based on the provided element. |
List<E> |
loadOlder(Long sinceTime,
int limit)
Loads older elements based on the provided element. |
| Method Detail |
|---|
List<E> loadAsList(int index,
int limit)
load(int, int).
index - the indexlimit - the number to load
E[] load(int index,
int limit)
load in interface org.exoplatform.commons.utils.ListAccess<E>index - the indexlimit - the maximum of elements to return
int getSize()
getSize in interface org.exoplatform.commons.utils.ListAccess<E>
List<E> loadNewer(E e,
int length)
e - the based elementlength - number of newer elements to load
int getNumberOfNewer(E e)
e - the provided element
List<E> loadOlder(E e,
int length)
e - the based elementlength - number of older elements to load
int getNumberOfOlder(E e)
e - the provided element
int getNumberOfNewer(Long sinceTime)
sinceTime - the updated time
int getNumberOfMultiUpdated(Map<String,Long> sinceTimes)
sinceTime - the postedTime
List<E> getUpadtedActivities(Long sinceTime,
int limit)
sinceTime - the sinceTimelimit - number of newer elements to load
List<E> loadNewer(Long sinceTime,
int limit)
sinceTime - updated time of newer elements to loadlimit - number of newer elements to load
List<E> loadOlder(Long sinceTime,
int limit)
sinceTime - updated time of older elements to loadlimit - number of older elements to load
int getNumberOfOlder(Long sinceTime)
sinceTime - the updated time
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||