Class QueryResult<K,V>
- java.lang.Object
-
- io.streamthoughts.azkarra.api.query.result.QueryResult<K,V>
-
- All Implemented Interfaces:
Serializable
public class QueryResult<K,V> extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
GlobalResultSet<K,V>
getResult()
String
getServer()
QueryStatus
getStatus()
long
getTook()
int
hashCode()
boolean
isTimeout()
QueryResult<K,V>
server(String server)
Sets the server information.QueryResult<K,V>
timeout(boolean timeout)
Sets the timeout information.QueryResult<K,V>
took(long took)
Sets the took information.String
toString()
-
-
-
Method Detail
-
getTook
public long getTook()
-
isTimeout
public boolean isTimeout()
-
getServer
public String getServer()
-
getStatus
public QueryStatus getStatus()
-
getResult
public GlobalResultSet<K,V> getResult()
-
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.
-
-