Package io.deephaven.client.impl
Class SessionImplConfig
java.lang.Object
io.deephaven.client.impl.SessionImplConfig
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SessionImplConfig.Builder
builder()
abstract DeephavenChannel
channel()
TheSession
andConsoleSession
close timeout.final SessionImpl
Equivalent toSessionImpl.create(this)
.boolean
Whether theSession
implementation will implement a batchTableHandleManager
.The session execute timeout.abstract ScheduledExecutorService
executor()
static SessionImplConfig
from
(SessionConfig sessionConfig, io.grpc.ManagedChannel managedChannel, ScheduledExecutorService defaultScheduler) A low level adapter fromSessionConfig
intoSessionImplConfig
.boolean
Whether the default batchTableHandleManager
will use mix-in more relevant stacktraces.static SessionImplConfig
of
(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 fromSessionConfig
intoSessionImplConfig
. 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 theSession
implementation 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 batchTableHandleManager
will 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
TheSession
andConsoleSession
close 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:
-