public interface ObjectInputStreamFactory
extends org.apache.hadoop.service.Service, org.apache.hadoop.fs.StreamCapabilities
ObjectInputStream streams.
This class is instantiated during initialization of
S3AStore, it then follows the same service
lifecycle.
Note for maintainers: do try and keep this mostly stable.
If new parameters need to be added, expand the
ObjectReadParameters class, rather than change the
interface signature.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ObjectInputStreamFactory.StreamFactoryCallbacks
Callbacks for stream factories.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind(FactoryBindingParameters factoryBindingParameters)
Set extra initialization parameters.
|
StreamFactoryRequirements |
factoryRequirements()
Get requirements from the factory which then tune behavior
elsewhere in the system.
|
ObjectInputStream |
readObject(ObjectReadParameters parameters)
Create a new input stream.
|
InputStreamType |
streamType()
Get the input stream type.
|
void bind(FactoryBindingParameters factoryBindingParameters) throws IOException
init()
and start().factoryBindingParameters - parameters for the factory bindingIOException - if IO problems.ObjectInputStream readObject(ObjectReadParameters parameters) throws IOException
parameters - parameters.IOException - problem creating the stream.StreamFactoryRequirements factoryRequirements()
InputStreamType streamType()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.