public static class PolicyHelper.SessionWrapper extends Object
Modifier and Type | Field and Description |
---|---|
static PolicyHelper.SessionWrapper |
DEFAULT_INSTANCE |
PolicyHelper.Status |
status |
long |
zkVersion |
Constructor and Description |
---|
SessionWrapper(Policy.Session session,
org.apache.solr.client.solrj.cloud.autoscaling.PolicyHelper.SessionRef ref) |
Modifier and Type | Method and Description |
---|---|
Policy.Session |
get() |
long |
getCreateTime() |
long |
getLastUpdateTime() |
int |
getRefCount() |
void |
release() |
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
|
PolicyHelper.SessionWrapper |
update(Policy.Session session) |
public static final PolicyHelper.SessionWrapper DEFAULT_INSTANCE
public PolicyHelper.Status status
public final long zkVersion
public SessionWrapper(Policy.Session session, org.apache.solr.client.solrj.cloud.autoscaling.PolicyHelper.SessionRef ref)
public long getCreateTime()
public long getLastUpdateTime()
public Policy.Session get()
public PolicyHelper.SessionWrapper update(Policy.Session session)
public int getRefCount()
public void returnSession(Policy.Session session)
public void release()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.