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
An interface implemented by components that intend to support pollable behavior.
- Author:
- Nick Crum (ncrum)
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault GDisables 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 GEnables pollable behavior and provides the opportunity to configure thePollableOptions.Methods inherited from interface java.lang.Comparable
compareToMethods 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 Details
-
pollable
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
-
pollable
Enables pollable behavior with out-of-box defaults.- Returns:
- the pollable
-
notPollable
Disables pollable behavior.- Returns:
- the pollable
-
pollableOptions
-
pollableOptions
Enables pollable behavior and provides the opportunity to configure thePollableOptions.- Parameters:
fn- the function to configure the poll options- Returns:
- the pollable
-
pollableCollectionConditions
-
pollableCollectionCondition
-
pollableItemConditions
-
pollableItemCondition
-