public static class PolicyHelper.SessionWrapper extends Object
Modifier and Type | Field and Description |
---|---|
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()
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 separately
|
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
|
void |
update(Policy.Session session) |
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 void update(Policy.Session session)
public int getRefCount()
public void returnSession(Policy.Session session)
public void returnSession()
public void release()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.