Class QueryResult<K,​V>

    • Method Detail

      • getTook

        public long getTook()
      • isTimeout

        public boolean isTimeout()
      • getServer

        public String getServer()
      • server

        public QueryResult<K,​V> server​(String server)
        Sets the server information.
        Parameters:
        server - the server to set.
        Returns:
        a new QueryResult instance.
      • took

        public QueryResult<K,​V> took​(long took)
        Sets the took information.
        Parameters:
        took - the query took millisecond.
        Returns:
        a new QueryResult instance.
      • timeout

        public QueryResult<K,​V> timeout​(boolean timeout)
        Sets the timeout information.
        Parameters:
        timeout - is the query timeout.
        Returns:
        a new QueryResult instance.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object