Package org.apache.bookkeeper.feature
Interface Feature
- All Known Implementing Classes:
FixedValueFeature,SettableFeature
public interface Feature
This interface represents a feature.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintReturns the availability of this feature, an integer between 0 and 100.booleanWhether this feature is available or not.name()Returns a textual representation of the feature.
-
Field Details
-
FEATURE_AVAILABILITY_MAX_VALUE
static final int FEATURE_AVAILABILITY_MAX_VALUE- See Also:
-
-
Method Details
-
name
String name()Returns a textual representation of the feature.- Returns:
- name of the feature.
-
availability
int availability()Returns the availability of this feature, an integer between 0 and 100.- Returns:
- the availability of this feature.
-
isAvailable
boolean isAvailable()Whether this feature is available or not.- Returns:
- true if this feature is available, otherwise false.
-