@InterfaceAudience.Public
@InterfaceStability.Evolving
public interface StreamCapabilities
Modifier and Type | Field and Description |
---|---|
static String |
DROPBEHIND
Stream setDropBehind capability implemented by
CanSetDropBehind.setDropBehind(Boolean) . |
static String |
HFLUSH
Stream hflush capability implemented by
Syncable.hflush() . |
static String |
HSYNC
Stream hsync capability implemented by
Syncable.hsync() . |
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.
|
static final String HFLUSH
Syncable.hflush()
.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)
.boolean hasCapability(String capability)
capability
- string to query the stream support for.Copyright © 2022 Apache Software Foundation. All rights reserved.