public class StreamFactoryRequirements extends Object
StreamFactoryRequirements.Requirements.
The FS is expected to adapt its internal configuration based on
the requirements passed back by the stream factory after its
creation.| Modifier and Type | Class and Description |
|---|---|
static class |
StreamFactoryRequirements.Requirements
Requirements a factory may have.
|
| Constructor and Description |
|---|
StreamFactoryRequirements(int sharedThreads,
int streamThreads,
VectoredIOContext vectoredIOContext,
StreamFactoryRequirements.Requirements... requirements)
Create the thread options.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
requires(StreamFactoryRequirements.Requirements r)
Does this factory have this requirement?
|
boolean |
requiresFuturePool()
Should the future pool be created?
|
int |
sharedThreads()
Number of shared threads to included in the bounded pool.
|
int |
streamThreads()
The maximum number of threads which can be used should by a single input stream.
|
String |
toString() |
VectoredIOContext |
vectoredIOContext()
The VectorIO requirements of streams.
|
public StreamFactoryRequirements(int sharedThreads,
int streamThreads,
VectoredIOContext vectoredIOContext,
StreamFactoryRequirements.Requirements... requirements)
sharedThreads - Number of shared threads to included in the bounded pool.streamThreads - How many threads per stream, ignoring vector IO requirements.vectoredIOContext - vector IO settings -made immutable if not already done.requirements - requirement flags of the factory and stream.public int sharedThreads()
public int streamThreads()
public boolean requiresFuturePool()
public VectoredIOContext vectoredIOContext()
public boolean requires(StreamFactoryRequirements.Requirements r)
r - requirement to probe for.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.