|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<java.lang.Object>
org.apache.openjpa.datacache.QueryResult
public class QueryResult
A query result.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
QueryResult(java.util.Collection<java.lang.Object> data,
long ex)
Constructor to set internal data from a serializer. |
|
QueryResult(QueryKey key,
java.util.Collection<java.lang.Object> data)
Constructor; supply corresponding query key and result data. |
|
| Method Summary | |
|---|---|
long |
getTimeoutTime()
Expiration time, or -1 for no timeout. |
long |
getTimestamp()
Returns the timestamp of the query result. |
boolean |
isTimedOut()
Whether this data is timed out. |
void |
setTimestamp(long ts)
Sets the timestamp of the query result. |
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode |
| Constructor Detail |
|---|
public QueryResult(QueryKey key,
java.util.Collection<java.lang.Object> data)
public QueryResult(java.util.Collection<java.lang.Object> data,
long ex)
| Method Detail |
|---|
public long getTimeoutTime()
public boolean isTimedOut()
public void setTimestamp(long ts)
ts - -- Timestamp value in longpublic long getTimestamp()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||