All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.scalecube.reactor.RetryNonSerializedEmitFailureHandler Maven / Gradle / Ivy

There is a newer version: 1.0.25
Show newest version
package io.scalecube.reactor;

import reactor.core.publisher.SignalType;
import reactor.core.publisher.Sinks.EmitFailureHandler;
import reactor.core.publisher.Sinks.EmitResult;

public class RetryNonSerializedEmitFailureHandler implements EmitFailureHandler {

  public static final RetryNonSerializedEmitFailureHandler RETRY_NON_SERIALIZED =
      new RetryNonSerializedEmitFailureHandler();

  @Override
  public boolean onEmitFailure(SignalType signalType, EmitResult emitResult) {
    return emitResult == EmitResult.FAIL_NON_SERIALIZED;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy