@InterfaceAudience.Public
@InterfaceStability.Evolving
public interface StreamCapabilities
Modifier and Type | Field and Description |
---|---|
static String |
ABORTABLE_STREAM
Stream abort() capability implemented by
Abortable.abort() . |
static String |
DROPBEHIND
Stream setDropBehind capability implemented by
CanSetDropBehind.setDropBehind(Boolean) . |
static String |
HFLUSH
Deprecated.
|
static String |
HSYNC
Stream hsync capability implemented by
Syncable.hsync() . |
static String |
IOSTATISTICS
IOStatisticsSource API.
|
static String |
IOSTATISTICS_CONTEXT
Streams that support IOStatistics context and capture thread-level
IOStatistics.
|
static String |
PREADBYTEBUFFER
Stream read(long, ByteBuffer) capability implemented by
ByteBufferPositionedReadable.read(long, java.nio.ByteBuffer) . |
static String |
READAHEAD
Stream setReadahead capability implemented by
CanSetReadahead.setReadahead(Long) . |
static String |
READBYTEBUFFER
Stream read(ByteBuffer) capability implemented by
ByteBufferReadable.read(java.nio.ByteBuffer) . |
static String |
UNBUFFER
Stream unbuffer capability implemented by
CanUnbuffer.unbuffer() . |
static String |
VECTOREDIO
Support for vectored IO api.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasCapability(String capability)
Query the stream for a specific capability.
|
@Deprecated static final String HFLUSH
Syncable.hflush()
.
Use the HSYNC
probe to check for the support of Syncable;
it's that presence of hsync()
which matters.static final String HSYNC
Syncable.hsync()
.static final String READAHEAD
CanSetReadahead.setReadahead(Long)
.static final String DROPBEHIND
CanSetDropBehind.setDropBehind(Boolean)
.static final String UNBUFFER
CanUnbuffer.unbuffer()
.static final String READBYTEBUFFER
ByteBufferReadable.read(java.nio.ByteBuffer)
.static final String PREADBYTEBUFFER
ByteBufferPositionedReadable.read(long, java.nio.ByteBuffer)
.static final String IOSTATISTICS
static final String VECTOREDIO
PositionedReadable#readVectored(List, IntFunction)
.static final String ABORTABLE_STREAM
Abortable.abort()
.
This matches the Path Capability
CommonPathCapabilities.ABORTABLE_STREAM
.static final String IOSTATISTICS_CONTEXT
boolean hasCapability(String capability)
capability
- string to query the stream support for.Copyright © 2023 Apache Software Foundation. All rights reserved.