Package org.drasyl.cli.command.perf
Class PerfTestSender
- java.lang.Object
-
- org.drasyl.cli.command.perf.PerfTestSender
-
public class PerfTestSender extends Object
Represents the sending node in a performance test.- See Also:
PerfTestReceiver
-
-
Field Summary
Fields Modifier and Type Field Description static short
COMPLETE_TEST_TRIES
static Duration
SESSION_PROGRESS_INTERVAL
-
Constructor Summary
Constructors Constructor Description PerfTestSender(IdentityPublicKey receiver, SessionRequest session, io.reactivex.rxjava3.core.Scheduler scheduler, PrintStream printStream, BiFunction<IdentityPublicKey,Object,CompletionStage<Void>> sendMethod, Supplier<Behavior> successBehavior, Function<Exception,Behavior> failureBehavior)
-
-
-
Field Detail
-
SESSION_PROGRESS_INTERVAL
public static final Duration SESSION_PROGRESS_INTERVAL
-
COMPLETE_TEST_TRIES
public static final short COMPLETE_TEST_TRIES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PerfTestSender
public PerfTestSender(IdentityPublicKey receiver, SessionRequest session, io.reactivex.rxjava3.core.Scheduler scheduler, PrintStream printStream, BiFunction<IdentityPublicKey,Object,CompletionStage<Void>> sendMethod, Supplier<Behavior> successBehavior, Function<Exception,Behavior> failureBehavior)
-
-
Method Detail
-
run
public Behavior run()
-
-