Creating a Session
You can create a session using the ServerInstance#createSession methods.
PgxSession createSession(String source)
PgxSession createSession(String source, long idleTimeout, long taskTimeout, TimeUnit unit)
session = create_session(source, idle_timeout=None, task_timeout=None, time_unit='milliseconds')
The preceding methods accept the following arguments:
-
sourceis any arbitrary string that describes the client. Currently, this string is only used for logging purposes. -
The user can specify the idle timeout (
idleTimeout) and task timeout (taskTimeout) when creating a new session. If these values are not specified, default values are used.See Configuration Parameters for the Graph Server (PGX) Engine for more information on graph server (PGX) configuration options.