public class Session extends Object
Constructor and Description |
---|
Session(String session,
Context context,
ConcurrentHashMap<String,Session> sessions) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptingRequests() |
Bindings |
getBindings() |
ExecutorService |
getExecutor() |
GremlinExecutor |
getGremlinExecutor() |
String |
getSessionId() |
void |
kill()
Deprecated.
As of release 3.2.4, replaced by
kill(boolean) . |
void |
kill(boolean force)
Kills the session and rollback any uncommitted changes on transactional graphs.
|
void |
manualKill()
Deprecated.
As of release 3.2.4, replaced by
manualKill(boolean) . |
void |
manualKill(boolean force)
Stops the session with call to
kill() but also stops the session expiration call which ensures that
the session is only killed once. |
void |
touch() |
public Session(String session, Context context, ConcurrentHashMap<String,Session> sessions)
public GremlinExecutor getGremlinExecutor()
public Bindings getBindings()
public ExecutorService getExecutor()
public String getSessionId()
public boolean acceptingRequests()
public void touch()
@Deprecated public void manualKill()
manualKill(boolean)
.kill()
but also stops the session expiration call which ensures that
the session is only killed once. Calls manualKill(boolean)
with false
.public void manualKill(boolean force)
kill()
but also stops the session expiration call which ensures that
the session is only killed once. See kill(boolean)
for information on how what "forcing" the session
kill will mean.@Deprecated public void kill()
kill(boolean)
.kill(boolean)
with false
.public void kill(boolean force)
Copyright © 2013–2018 Apache Software Foundation. All rights reserved.