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

The following examples show how to use reactor.core.publisher.Hooks#resetOnErrorDropped() . 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: HooksResetRule.java    From retrofit2-reactor-adapter with Apache License 2.0 5 votes vote down vote up
@Override public Statement apply(final Statement base, Description description) {
  return new Statement() {
    @Override public void evaluate() throws Throwable {
      Hooks.resetOnErrorDropped();
      try {
        base.evaluate();
      } finally {
        Hooks.resetOnErrorDropped();
      }
    }
  };
}
 
Example 3
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 4
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 5
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 6
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();
}