Package io.hyperfoil.api.session
Interface GlobalData.Accumulator
- Enclosing interface:
- GlobalData
public static interface GlobalData.Accumulator
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a new element to the accumulator.complete()Transforms contents of this accumulator into a combined element.
-
Method Details
-
add
Add a new element to the accumulator. The elements can be combined in arbitrary order, extracted into another element usingcomplete()and combined again.- Parameters:
e- Element of the same type that created this accumulator.- Throws:
IllegalArgumentException- if the element is of unsupported type.
-
complete
GlobalData.Element complete()Transforms contents of this accumulator into a combined element.- Returns:
- Combined element.
-