Package org.apache.bookkeeper.feature
Class SettableFeature
- java.lang.Object
-
- org.apache.bookkeeper.feature.FixedValueFeature
-
- org.apache.bookkeeper.feature.SettableFeature
-
- All Implemented Interfaces:
Feature
public class SettableFeature extends FixedValueFeature
A feature implementation that allow changing availability programmatically.
-
-
Field Summary
-
Fields inherited from class org.apache.bookkeeper.feature.FixedValueFeature
availability, name
-
Fields inherited from interface org.apache.bookkeeper.feature.Feature
FEATURE_AVAILABILITY_MAX_VALUE
-
-
Constructor Summary
Constructors Constructor Description SettableFeature(java.lang.String name, boolean isAvailable)
SettableFeature(java.lang.String name, int initialAvailability)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
set(boolean isAvailable)
void
set(int availability)
-
Methods inherited from class org.apache.bookkeeper.feature.FixedValueFeature
availability, isAvailable, name
-
-