Package org.drools.ruleunits.api
Interface SingletonStore<T>
-
- All Superinterfaces:
DataSource<T>
public interface SingletonStore<T> extends DataSource<T>
A data store that contains at most one value
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.drools.ruleunits.api.DataSource
DataSource.Factory, DataSource.FactoryHolder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
Clear the value in this singleton data storeDataHandle
set(T value)
Set the value in this singleton data storevoid
update()
Notifies the store that the contained value has changed-
Methods inherited from interface org.drools.ruleunits.api.DataSource
subscribe
-
-
-
-
Method Detail
-
set
DataHandle set(T value)
Set the value in this singleton data store
-
update
void update()
Notifies the store that the contained value has changed
-
clear
void clear()
Clear the value in this singleton data store
-
-