Uses of Interface
com.soklet.Simulator
Packages that use Simulator
-
Uses of Simulator in com.soklet
Methods in com.soklet that return SimulatorModifier and TypeMethodDescriptionSimulator.onBroadcastError(@Nullable Consumer<Throwable> onBroadcastError) Registers a handler for exceptions thrown by simulated Server-Sent Event consumers.Simulator.onUnicastError(@Nullable Consumer<Throwable> onUnicastError) Registers a handler for exceptions thrown by simulated Server-Sent Event unicast consumers.Method parameters in com.soklet with type arguments of type SimulatorModifier and TypeMethodDescriptionstatic voidSoklet.runSimulator(@NonNull SokletConfig sokletConfig, @NonNull Consumer<Simulator> simulatorConsumer) Runs Soklet with special non-network "simulator" implementations ofServerandServerSentEventServer- useful for integration testing.