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 static PolicyHelper.SessionWrapperDEFAULT_INSTANCEPolicyHelper.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()longgetLastUpdateTime()intgetRefCount()voidrelease()voidreturnSession(Policy.Session session)return this for later use and update the session with the latest state ensure that this is done after computing the suggestionsPolicyHelper.SessionWrapperupdate(Policy.Session session)
-
-
-
Field Detail
-
DEFAULT_INSTANCE
public static final PolicyHelper.SessionWrapper DEFAULT_INSTANCE
-
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()
-
getLastUpdateTime
public long getLastUpdateTime()
-
get
public Policy.Session get()
-
update
public PolicyHelper.SessionWrapper 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
-
release
public void release()
-
-