public class QueryResult
extends java.util.ArrayList<java.lang.Object>
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
public QueryResult(QueryKey key, java.util.Collection<java.lang.Object> data)
public QueryResult(java.util.Collection<java.lang.Object> data, long ex)
public long getTimeoutTime()
public boolean isTimedOut()
public void setTimestamp(long ts)
ts
- -- Timestamp value in longpublic long getTimestamp()
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.