public class QueryResult extends ArrayList<Object>
modCount
Constructor and Description |
---|
QueryResult(Collection<Object> data,
long ex)
Constructor to set internal data from a serializer.
|
QueryResult(QueryKey key,
Collection<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, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
public QueryResult(QueryKey key, Collection<Object> data)
public QueryResult(Collection<Object> data, long ex)
public long getTimeoutTime()
public boolean isTimedOut()
public void setTimestamp(long ts)
ts
- -- Timestamp value in longpublic long getTimestamp()
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.