Package io.deephaven.uri
Class UriConfig.UriConfigBuilder
java.lang.Object
io.deephaven.uri.UriConfig.UriConfigBuilder
- Enclosing class:
- UriConfig
Builder to help with initialization. There's no build call, because instead of building there's an init() call which delegates to
UriResolversInstance.init(io.deephaven.uri.resolver.UriResolvers).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()Doesn't return anything, instead it initializes theUriResolversInstance.static UriConfig.UriConfigBuilderReturn a new, emptyUriConfig.UriConfigBuilder.withBufferAllocator(io.deephaven.shadow.client.flight.org.apache.arrow.memory.BufferAllocator allocator) Add aBufferAllocator.withPersistentQueryControllerClient(PersistentQueryControllerClient controllerClient) Add aScheduledExecutorService.withSSLConfig(io.deephaven.ssl.config.SSLConfig ssl) Add anSSLConfig.
-
Constructor Details
-
UriConfigBuilder
public UriConfigBuilder()Return an emptyUriConfig.UriConfigBuilder.
-
-
Method Details
-
newBuilder
Return a new, emptyUriConfig.UriConfigBuilder.- Returns:
- the new
UriConfig.UriConfigBuilder
-
withScheduledExecutorService
Add aScheduledExecutorService.- Parameters:
executor- theScheduledExecutorService- Returns:
- this UriConfigBuilder
-
withBufferAllocator
public UriConfig.UriConfigBuilder withBufferAllocator(io.deephaven.shadow.client.flight.org.apache.arrow.memory.BufferAllocator allocator) Add aBufferAllocator.- Parameters:
allocator- theBufferAllocator- Returns:
- this UriConfigBuilder
-
withSSLConfig
Add anSSLConfig.- Parameters:
ssl- theSSLConfig- Returns:
- this UriConfigBuilder
-
withPersistentQueryControllerClient
public UriConfig.UriConfigBuilder withPersistentQueryControllerClient(PersistentQueryControllerClient controllerClient) - Parameters:
controllerClient- thePersistentQueryControllerClient- Returns:
- this UriConfigBuilder
-
init
public void init()Doesn't return anything, instead it initializes theUriResolversInstance. If they haven't been defined, it will use the following defaults:- executor:
NamingThreadFactory - allocator:
RootAllocator - ssl:
SSLConfigfromUriConfig.getDefaultSsl()
- executor:
-