@InterfaceAudience.Public
 @InterfaceStability.Evolving
public interface StreamCapabilities
| Modifier and Type | Field and Description | 
|---|---|
| static String | ABORTABLE_STREAMStream abort() capability implemented by  Abortable.abort(). | 
| static String | DROPBEHINDStream setDropBehind capability implemented by
  CanSetDropBehind.setDropBehind(Boolean). | 
| static String | HFLUSHDeprecated.  | 
| static String | HSYNCStream hsync capability implemented by  Syncable.hsync(). | 
| static String | IOSTATISTICSIOStatisticsSource API. | 
| static String | IOSTATISTICS_CONTEXTStreams that support IOStatistics context and capture thread-level
 IOStatistics. | 
| static String | PREADBYTEBUFFERStream read(long, ByteBuffer) capability implemented by
  ByteBufferPositionedReadable.read(long, java.nio.ByteBuffer). | 
| static String | READAHEADStream setReadahead capability implemented by
  CanSetReadahead.setReadahead(Long). | 
| static String | READBYTEBUFFERStream read(ByteBuffer) capability implemented by
  ByteBufferReadable.read(java.nio.ByteBuffer). | 
| static String | UNBUFFERStream unbuffer capability implemented by  CanUnbuffer.unbuffer(). | 
| static String | VECTOREDIOSupport for vectored IO api. | 
| static String | VECTOREDIO_BUFFERS_SLICEDProbe for vector IO implementation details: "fs.capability.vectoredio.sliced". | 
| 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 VECTOREDIO_BUFFERS_SLICED
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 © 2025 Apache Software Foundation. All rights reserved.