public class QueryState
extends java.lang.Object
Constructor and Description |
---|
QueryState(ClientState clientState) |
QueryState(ClientState clientState,
long timestamp,
int nowInSeconds) |
Modifier and Type | Method and Description |
---|---|
static QueryState |
forInternalCalls() |
int |
generatedNowInSeconds() |
long |
generatedTimestamp() |
java.net.InetAddress |
getClientAddress() |
ClientState |
getClientState() |
int |
getNowInSeconds()
Generate, cache, and record a nowInSeconds value on the server-side.
|
long |
getTimestamp()
Generate, cache, and record a timestamp value on the server-side.
|
public QueryState(ClientState clientState)
public QueryState(ClientState clientState, long timestamp, int nowInSeconds)
public static QueryState forInternalCalls()
public long getTimestamp()
QueryOptions.getTimestamp(QueryState)
should be used
by all consumers.public int getNowInSeconds()
QueryOptions.getNowInSeconds(QueryState)
should be used
by all consumers.public long generatedTimestamp()
public int generatedNowInSeconds()
public ClientState getClientState()
public java.net.InetAddress getClientAddress()
Copyright © 2009-2022 The Apache Software Foundation