
io.numaproj.numaflow.sessionreducer.ShutdownActor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of numaflow-java Show documentation
Show all versions of numaflow-java Show documentation
SDK to implement Numaflow Source or User Defined Functions or Sinks in Java.
The newest version!
package io.numaproj.numaflow.sessionreducer;
import akka.actor.AbstractActor;
import akka.actor.AllDeadLetters;
import akka.actor.Props;
import akka.japi.pf.ReceiveBuilder;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
/**
* Shutdown actor, listens to exceptions and handles shutdown.
*/
@Slf4j
@AllArgsConstructor
class ShutdownActor extends AbstractActor {
private final CompletableFuture failureFuture;
public static Props props(
CompletableFuture failureFuture) {
return Props.create(ShutdownActor.class, failureFuture);
}
@Override
public void preRestart(Throwable reason, Optional
© 2015 - 2025 Weber Informatics LLC | Privacy Policy