Java Code Examples for reactor.core.publisher.Hooks#resetOnNextDropped()

The following examples show how to use reactor.core.publisher.Hooks#resetOnNextDropped() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ReactorTestExecutionListener.java    From reactor-core with Apache License 2.0 6 votes vote down vote up
public static void reset() {
	Hooks.resetOnOperatorDebug();

	Hooks.resetOnEachOperator();
	Hooks.resetOnLastOperator();

	Hooks.resetOnErrorDropped();
	Hooks.resetOnNextDropped();

	Hooks.resetOnNextError();
	Hooks.resetOnOperatorError();

	Schedulers.resetOnHandleError();
	Schedulers.resetFactory();
	Schedulers.resetOnScheduleHooks();

	// TODO capture non-default schedulers and shutdown them
}
 
Example 2
Source File: DefaultStepVerifierBuilder.java    From reactor-core with Apache License 2.0 4 votes vote down vote up
public void unplugHooks() {
	Hooks.resetOnNextDropped();
	Hooks.resetOnErrorDropped();
	Hooks.resetOnOperatorError();
}
 
Example 3
Source File: DefaultRSocketClientTests.java    From rsocket-java with Apache License 2.0 4 votes vote down vote up
@AfterEach
public void tearDown() {
  Hooks.resetOnErrorDropped();
  Hooks.resetOnNextDropped();
}
 
Example 4
Source File: RSocketResponderTest.java    From rsocket-java with Apache License 2.0 4 votes vote down vote up
@AfterEach
public void tearDown() {
  Hooks.resetOnErrorDropped();
  Hooks.resetOnNextDropped();
}
 
Example 5
Source File: RSocketRequesterTest.java    From rsocket-java with Apache License 2.0 4 votes vote down vote up
@AfterEach
public void tearDown() {
  Hooks.resetOnErrorDropped();
  Hooks.resetOnNextDropped();
}