Package io.hyperfoil.api.session
Interface GlobalData
-
public interface GlobalData
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceGlobalData.Accumulatorstatic interfaceGlobalData.ElementThis interface is typically implemented in extensions.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpublish(java.lang.String phase, java.lang.String key, GlobalData.Element element)Offers an element for publishing.GlobalData.Elementread(java.lang.String key)Retrieves the element created in one of strictly preceding phases.
-
-
-
Method Detail
-
publish
void publish(java.lang.String phase, java.lang.String key, GlobalData.Element element)Offers an element for publishing. When the publishing phase terminates all elements with the same key are combined together (in arbitrary order) on the controller. The resulting element is then made available to phases started strictly after publishing phase. If there is already an existing element with this key present all remaining phases are cancelled and an error is reported.- Parameters:
phase-key- Identifier.element- Custom element.
-
read
GlobalData.Element read(java.lang.String key)
Retrieves the element created in one of strictly preceding phases.- Parameters:
key- Identifier.- Returns:
- Custom element.
-
-