Package org.apache.bookkeeper.feature
Interface Feature
-
- All Known Implementing Classes:
FixedValueFeature
,SettableFeature
public interface Feature
This interface represents a feature.
-
-
Field Summary
Fields Modifier and Type Field Description static int
FEATURE_AVAILABILITY_MAX_VALUE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
availability()
Returns the availability of this feature, an integer between 0 and 100.boolean
isAvailable()
Whether this feature is available or not.java.lang.String
name()
Returns a textual representation of the feature.
-
-
-
Field Detail
-
FEATURE_AVAILABILITY_MAX_VALUE
static final int FEATURE_AVAILABILITY_MAX_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
java.lang.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.
-
-