Class QueryResult

    • Constructor Detail

      • QueryResult

        public QueryResult​(QueryKey key,
                           Collection<Object> data)
        Constructor; supply corresponding query key and result data.
      • QueryResult

        public QueryResult​(Collection<Object> data,
                           long ex)
        Constructor to set internal data from a serializer.
    • Method Detail

      • getTimeoutTime

        public long getTimeoutTime()
        Expiration time, or -1 for no timeout.
      • isTimedOut

        public boolean isTimedOut()
        Whether this data is timed out.
      • setTimestamp

        public void setTimestamp​(long ts)
        Sets the timestamp of the query result.
        Parameters:
        ts - -- Timestamp value in long
      • getTimestamp

        public long getTimestamp()
        Returns the timestamp of the query result.
        Returns:
        -- the timestamp value in long