Interface WorklistUpdateConfiguration
-
- All Superinterfaces:
Serializable,UserAttributeContainer
public interface WorklistUpdateConfiguration extends UserAttributeContainer, Serializable
The configuration of a worklist, e.g. update intervals and update modes.The configuration will be used server side (e.g. for push-modes), as well as on client side (e.g. for poll-modes).
It is possible to specify the configuration concerning updates per-priority. This allows e.g. to receive urgent items by PUSH, less important items by POLL. As soon as a worklist item has a high enough priority to be pushed, all former updates are also sent. This allows provides for consistent revisions of client and server worklists. Otherwise some revisions (with low priority items) would be missing.
- Author:
- Kevin Goeser, Ulrich Kreher, Patrick Schmidt
-
-
Field Summary
Fields Modifier and Type Field Description static longserialVersionUIDGenerated ID for serialisation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetIncrementalUpdateThreshold()Gets the threshold for the update size when to push incremental updates instead of complete updates.longgetUpdateInterval(int priority)Get the update interval in case ofPUSHin milliseconds for the designated priority.int[]getUpdateIntervalThresholds()An array of priority values which are thresholds of the update intervals, sorted by priority.intgetUpdateModeThreshold()The priority threshold that determines the update mode.FiltergetWorklistFilter()Returns the filter applied on the worklist items ornullif no filter is applied.-
Methods inherited from interface de.aristaflow.adept2.model.common.UserAttributeContainer
getUserAttributes, getUserAttributeValue, removeUserAttributeValue, setUserAttributeValue
-
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
Generated ID for serialisation.- See Also:
- Constant Field Values
-
-
Method Detail
-
getUpdateModeThreshold
int getUpdateModeThreshold()
The priority threshold that determines the update mode. Priorities greater than or equal to the threshold will result in aPUSH, priorities below the threshold inPULL. I.e. for a pull-only mode useInteger.MAX_VALUE, if every update should be pushed use0.Please refer to
WorklistConstants.Priorityfor some default values.- Returns:
- The priority threshold that determines the update mode.
-
getUpdateInterval
long getUpdateInterval(int priority)
Get the update interval in case ofPUSHin milliseconds for the designated priority. This allows for timedPUSHbased on the priority: Although aPUSHis configured for a specific priority, thePUSHis not performed before the update interval has elapsed.Please refer to
WorklistConstants.Priorityfor some default values.- Parameters:
priority- The priority for which to retrieve the push update interval.- Returns:
- The update interval in milliseconds for the designated priority.
-
getUpdateIntervalThresholds
int[] getUpdateIntervalThresholds()
An array of priority values which are thresholds of the update intervals, sorted by priority. The priorities are only valid forPUSHed updates, worklist items with a priority forPULLhave an infinite update interval. Therefore an empty array will be returned forPULLed only.Please refer to
WorklistConstants.Priorityfor some default values.- Returns:
- An array of thresholds for
PUSHed priorities or an empty array ifPULLis used only.
-
getIncrementalUpdateThreshold
int getIncrementalUpdateThreshold()
Gets the threshold for the update size when to push incremental updates instead of complete updates. If an update contains more (or the same amount of) changes than the return value of this method, the pushed update will be an incremental one. If the update contains less, a complete update will be pushed. Use0to get only incremental updates, useInteger.MAX_VALUEto get complete updates only. Use a negative value to rely on the threshold configured for the worklist manager on server side.
This only applies to pushed updates.Incremental updates resemble the one of
RemoteIterators.- Returns:
- The threshold for the update size when to use an incremental worklist update instead of a complete update.
-
getWorklistFilter
Filter getWorklistFilter()
Returns the filter applied on the worklist items ornullif no filter is applied.- Returns:
- the filter applied on the worklist items or
nullif no filter is applied
-
-