Package net.serenitybdd.core.parallel
Class Agency
java.lang.Object
net.serenitybdd.core.parallel.Agency
public class Agency
extends java.lang.Object
The Agency keeps track of multiple listeners assigned to different agents (which represent actors or activities), to facilitate parallel execution of test tasks.
Agents can run in parallel and are used to group steps reported by the Serenity Event Bus.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Agency()
-
Method Summary
Modifier and Type Method Description java.util.Optional<BaseStepListener>
baseListenerFor(Agent agent)
java.util.Optional<BaseStepListener>
currentAgentSpecificListener()
void
dropAgent(Agent agent)
static Agency
getInstance()
void
registerAgent(Agent agent)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Agency
protected Agency()
-
-
Method Details
-
getInstance
-
registerAgent
-
baseListenerFor
-
dropAgent
-
currentAgentSpecificListener
-