@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 |
READAHEAD
Stream setReadahead capability implemented by
CanSetReadahead.setReadahead(Long) . |
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()
.boolean hasCapability(String capability)
capability
- string to query the stream support for.Copyright © 2020 Apache Software Foundation. All rights reserved.