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 aSeekableChannelsProviderLoaderinstance that is loading withSeekableChannelsProviderPluginprovided viaServiceLoader.load(Class).Create a newSeekableChannelsProvidercompatible for reading from and writing to the given URI scheme.Create a newSeekableChannelsProvidercompatible for reading from and writing to the given URI schemes.
-
Method Details
-
getInstance
Get a static aSeekableChannelsProviderLoaderinstance that is loading withSeekableChannelsProviderPluginprovided viaServiceLoader.load(Class).- Returns:
- The
SeekableChannelsProviderLoaderinstance.
-
load
public SeekableChannelsProvider load(@NotNull @NotNull String uriScheme, @Nullable @Nullable Object specialInstructions) Create a newSeekableChannelsProvidercompatible for reading from and writing to the given URI scheme. For example, for an "s3" URI, we will create aSeekableChannelsProviderwhich can read files from S3.- Parameters:
uriScheme- The URI schemespecialInstructions- An optional object to pass special instructions to the provider.- Returns:
- A
SeekableChannelsProviderfor the given URI scheme.
-
load
public SeekableChannelsProvider load(@NotNull @NotNull Set<String> uriSchemes, @Nullable @Nullable Object specialInstructions) Create a newSeekableChannelsProvidercompatible for reading from and writing to the given URI schemes. For example, for an "s3" URI, we will create aSeekableChannelsProviderwhich can read files from S3.- Parameters:
uriSchemes- The URI schemesspecialInstructions- An optional object to pass special instructions to the provider.- Returns:
- A
SeekableChannelsProviderfor the given URI scheme.
-