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