Package io.deephaven.client.impl
Class SessionImplConfig
java.lang.Object
io.deephaven.client.impl.SessionImplConfig
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SessionImplConfig.Builderbuilder()abstract DeephavenChannelchannel()TheSessionandConsoleSessionclose timeout.final SessionImplEquivalent toSessionImpl.create(this).booleanWhether theSessionimplementation will implement a batchTableHandleManager.The session execute timeout.abstract ScheduledExecutorServiceexecutor()static SessionImplConfigfrom(SessionConfig sessionConfig, io.grpc.ManagedChannel managedChannel, ScheduledExecutorService defaultScheduler) A low level adapter fromSessionConfigintoSessionImplConfig.booleanWhether the default batchTableHandleManagerwill use mix-in more relevant stacktraces.static SessionImplConfigof(DeephavenChannel channel, ScheduledExecutorService scheduler, String authenticationTypeAndValue)
-
Field Details
-
DEEPHAVEN_SESSION_BATCH
- See Also:
-
DEEPHAVEN_SESSION_BATCH_STACKTRACES
- See Also:
-
DEEPHAVEN_SESSION_EXECUTE_TIMEOUT
- See Also:
-
DEEPHAVEN_SESSION_CLOSE_TIMEOUT
- See Also:
-
-
Constructor Details
-
SessionImplConfig
public SessionImplConfig()
-
-
Method Details
-
builder
-
of
public static SessionImplConfig of(DeephavenChannel channel, ScheduledExecutorService scheduler, @Nullable @Named("authenticationTypeAndValue") String authenticationTypeAndValue) -
from
public static SessionImplConfig from(SessionConfig sessionConfig, io.grpc.ManagedChannel managedChannel, ScheduledExecutorService defaultScheduler) A low level adapter fromSessionConfigintoSessionImplConfig. Most callers should prefer to use the higher-level options encapsulated inSessionFactoryConfig.- Parameters:
sessionConfig- the session configmanagedChannel- the managed channeldefaultScheduler- the scheduler to use whenSessionConfig.scheduler()is empty- Returns:
- the session impl config
-
executor
-
channel
-
authenticationTypeAndValue
-
delegateToBatch
@Default public boolean delegateToBatch()Whether theSessionimplementation will implement a batchTableHandleManager. By default, istrue. The default can be overridden via the system property "deephaven.session.batch".- Returns:
- true if the session will implement a batch manager, false if the session will implement a serial manager
-
mixinStacktrace
@Default public boolean mixinStacktrace()Whether the default batchTableHandleManagerwill use mix-in more relevant stacktraces. By default, isfalse. The default can be overridden via the system property "deephaven.session.batch.stacktraces".- Returns:
- true if the default batch manager will mix-in stacktraces, false otherwise
-
executeTimeout
The session execute timeout. By default, isPT1m. The default can be overridden via the system property "deephaven.session.executeTimeout".- Returns:
- the session execute timeout
-
closeTimeout
TheSessionandConsoleSessionclose timeout. By default, isPT5s. The default can be overridden via the system property "deephaven.session.closeTimeout".- Returns:
- the close timeout
-
createSession
Equivalent toSessionImpl.create(this).- Returns:
- the session
- Throws:
InterruptedException- if the thread is interrupted- See Also:
-