public class SolrRequestInfo extends Object
Modifier and Type | Field and Description |
---|---|
protected List<Closeable> |
closeHooks |
protected Date |
now |
protected ResponseBuilder |
rb |
protected SolrQueryRequest |
req |
protected SolrQueryResponse |
rsp |
protected static ThreadLocal<SolrRequestInfo> |
threadLocal |
protected TimeZone |
tz |
Constructor and Description |
---|
SolrRequestInfo(SolrQueryRequest req,
SolrQueryResponse rsp) |
Modifier and Type | Method and Description |
---|---|
void |
addCloseHook(Closeable hook) |
static void |
clearRequestInfo() |
TimeZone |
getClientTimeZone()
The TimeZone specified by the request, or null if none was specified
|
static ExecutorUtil.InheritableThreadLocalProvider |
getInheritableThreadLocalProvider() |
Date |
getNOW() |
SolrQueryRequest |
getReq() |
static SolrRequestInfo |
getRequestInfo() |
ResponseBuilder |
getResponseBuilder()
May return null if the request handler is not based on SearchHandler
|
SolrQueryResponse |
getRsp() |
static void |
setRequestInfo(SolrRequestInfo info) |
void |
setResponseBuilder(ResponseBuilder rb) |
protected static final ThreadLocal<SolrRequestInfo> threadLocal
protected SolrQueryRequest req
protected SolrQueryResponse rsp
protected Date now
protected TimeZone tz
protected ResponseBuilder rb
public SolrRequestInfo(SolrQueryRequest req, SolrQueryResponse rsp)
public static SolrRequestInfo getRequestInfo()
public static void setRequestInfo(SolrRequestInfo info)
public static void clearRequestInfo()
public Date getNOW()
public TimeZone getClientTimeZone()
public SolrQueryRequest getReq()
public SolrQueryResponse getRsp()
public ResponseBuilder getResponseBuilder()
public void setResponseBuilder(ResponseBuilder rb)
public void addCloseHook(Closeable hook)
public static ExecutorUtil.InheritableThreadLocalProvider getInheritableThreadLocalProvider()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.