Package io.deephaven.util.channel
Class SeekableChannelsProviderLoader
java.lang.Object
io.deephaven.util.channel.SeekableChannelsProviderLoader
A service loader class for loading
SeekableChannelsProviderPlugin
implementations at runtime and provide
SeekableChannelsProvider
implementations for different URI schemes, e.g., S3.-
Method Summary
Modifier and TypeMethodDescriptionGet a static aSeekableChannelsProviderLoader
instance that is loading withSeekableChannelsProviderPlugin
provided viaServiceLoader.load(Class)
.Create a newSeekableChannelsProvider
compatible for reading from and writing to the given URI scheme.
-
Method Details
-
getInstance
Get a static aSeekableChannelsProviderLoader
instance that is loading withSeekableChannelsProviderPlugin
provided viaServiceLoader.load(Class)
.- Returns:
- The
SeekableChannelsProviderLoader
instance.
-
load
public SeekableChannelsProvider load(@NotNull @NotNull String uriScheme, @Nullable @Nullable Object specialInstructions) Create a newSeekableChannelsProvider
compatible for reading from and writing to the given URI scheme. For example, for a "S3" URI, we will create aSeekableChannelsProvider
which can read files from S3.- Parameters:
uriScheme
- The URI schemespecialInstructions
- An optional object to pass special instructions to the provider.- Returns:
- A
SeekableChannelsProvider
for the given URI scheme.
-