public abstract class AbstractTask extends Object implements Runnable
execute().
Instances of task is shared across multiple threads, the execute method must be thread-safe.
If you call locust.run(new AwesomeTask()), only one instance of AwesomeTask is used by multiple threads.
This behavior is different from locust in python.| 构造器和说明 |
|---|
AbstractTask() |
public abstract int getWeight()
public abstract String getName()
public abstract void execute()
throws Exception
ExceptionCopyright © 2019. All rights reserved.