Class PolicyHelper.SessionWrapper
- java.lang.Object
-
- org.apache.solr.client.solrj.cloud.autoscaling.PolicyHelper.SessionWrapper
-
- Enclosing class:
- PolicyHelper
public static class PolicyHelper.SessionWrapper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description PolicyHelper.Status
status
long
zkVersion
-
Constructor Summary
Constructors Constructor Description SessionWrapper(Policy.Session session, org.apache.solr.client.solrj.cloud.autoscaling.PolicyHelper.SessionRef ref)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Policy.Session
get()
long
getCreateTime()
Nanoseconds (since/to some arbitrary time) when the session got created.long
getLastUpdateTime()
int
getRefCount()
void
release()
void
returnSession()
return this for later use without updating the internal Session for cases where it's easier to update separatelyvoid
returnSession(Policy.Session session)
return this for later use and update the session with the latest state ensure that this is done after computing the suggestionsvoid
update(Policy.Session session)
-
-
-
Field Detail
-
status
public PolicyHelper.Status status
-
zkVersion
public final long zkVersion
-
-
Constructor Detail
-
SessionWrapper
public SessionWrapper(Policy.Session session, org.apache.solr.client.solrj.cloud.autoscaling.PolicyHelper.SessionRef ref)
-
-
Method Detail
-
getCreateTime
public long getCreateTime()
Nanoseconds (since/to some arbitrary time) when the session got created. Also used in logs (only in logs!) to identify the session.
-
getLastUpdateTime
public long getLastUpdateTime()
-
get
public Policy.Session get()
-
update
public void update(Policy.Session session)
-
getRefCount
public int getRefCount()
-
returnSession
public void returnSession(Policy.Session session)
return this for later use and update the session with the latest state ensure that this is done after computing the suggestions
-
returnSession
public void returnSession()
return this for later use without updating the internal Session for cases where it's easier to update separately
-
release
public void release()
-
-