@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 |
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() . |
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 ABORTABLE_STREAM
Abortable.abort()
.
This matches the Path Capability
CommonPathCapabilities.ABORTABLE_STREAM
.boolean hasCapability(String capability)
capability
- string to query the stream support for.Copyright © 2021 Apache Software Foundation. All rights reserved.