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.StatusstatuslongzkVersion
-
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.Sessionget()longgetCreateTime()Nanoseconds (since/to some arbitrary time) when the session got created.longgetLastUpdateTime()intgetRefCount()voidrelease()voidreturnSession()return this for later use without updating the internal Session for cases where it's easier to update separatelyvoidreturnSession(Policy.Session session)return this for later use and update the session with the latest state ensure that this is done after computing the suggestionsvoidupdate(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()
-
-