Interface Pollable<G extends Pollable<G>>
-
- All Superinterfaces:
Comparable<G>,Component<G>,Copyable<G>,Serializable
- All Known Subinterfaces:
EntityGridView<V>,ExportHistoryEntityGridView<V>,ExportHistoryGrid<G>,ExportHistoryGridExternal<E>,GridExternal<E>,GridView<V>,TreeGridView<V>
- All Known Implementing Classes:
DefaultEntityGridView,DefaultExportHistoryEntityGridView,DefaultExportHistoryGridExternal,DefaultGridExternal,DefaultTreeGridView
public interface Pollable<G extends Pollable<G>> extends Component<G>
An interface implemented by components that intend to support pollable behavior.- Author:
- Nick Crum (ncrum)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPollable.Attributes
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default GnotPollable()Disables pollable behavior.default Gpollable()Enables pollable behavior with out-of-box defaults.default Gpollable(boolean isPollable)default Gpollable(UnaryOperator<Pollable<?>> fn)Configure polling behavior for the component.default GpollableCollectionCondition(Conditional<?>... conditions)default GpollableCollectionConditions(Collection<Conditional<?>> conditionsToAdd)default GpollableItemCondition(Conditional<?>... conditions)default GpollableItemConditions(Collection<Conditional<?>> conditionsToAdd)default GpollableOptions(PollableOptions pollOptions)default GpollableOptions(UnaryOperator<PollableOptions> fn)Enables pollable behavior and provides the opportunity to configure thePollableOptions.-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.Component
addAction, addAction, addComponent, addEndpoint, addEndpoint, apply, attribute, augmentationKey, classifier, clearConditionals, clearEndpoints, conditional, conditionals, description, description, findAction, findAction, findActions, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoints, get, get, getAction, getAction, getActions, getActionsList, getAttribute, getAttribute, getAttributes, getAugmentationKey, getClassifier, getComponent, getComponent, getComponents, getComponentsList, getConditionals, getDescription, getEndpoint, getEndpoint, getEndpoints, getEndpointsList, getId, getLabel, getOrder, getScope, getType, hasAction, hasAttribute, hasComponent, hasEndpoint, id, isAugmentable, isTranslatable, label, label, notTranslatable, order, removeAction, removeAttribute, removeComponent, removeEndpoint, scope, self, setActions, setAttributes, setAugmentationKey, setClassifier, setComponents, setConditionals, setDescription, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, translatable, translatable, type
-
-
-
-
Method Detail
-
pollable
default G pollable(UnaryOperator<Pollable<?>> fn)
Configure polling behavior for the component. This is generally used with a lambda function, for example:grid.pollable(pollable -> pollable .pollableOptions(options -> options .errorLimit(5) .constantStrategy(5000)));- Parameters:
fn- the function to configure the pollable component- Returns:
- the pollable
-
pollable
default G pollable(boolean isPollable)
-
pollable
default G pollable()
Enables pollable behavior with out-of-box defaults.- Returns:
- the pollable
-
notPollable
default G notPollable()
Disables pollable behavior.- Returns:
- the pollable
-
pollableOptions
default G pollableOptions(PollableOptions pollOptions)
-
pollableOptions
default G pollableOptions(UnaryOperator<PollableOptions> fn)
Enables pollable behavior and provides the opportunity to configure thePollableOptions.- Parameters:
fn- the function to configure the poll options- Returns:
- the pollable
-
pollableCollectionConditions
default G pollableCollectionConditions(Collection<Conditional<?>> conditionsToAdd)
-
pollableCollectionCondition
default G pollableCollectionCondition(Conditional<?>... conditions)
-
pollableItemConditions
default G pollableItemConditions(Collection<Conditional<?>> conditionsToAdd)
-
pollableItemCondition
default G pollableItemCondition(Conditional<?>... conditions)
-
-