import org.opendaylight.controller.cluster.common.actor.AbstractUntypedActor;
import org.opendaylight.controller.remote.rpc.registry.RpcRegistry;
import org.opendaylight.mdsal.dom.api.DOMRpcProviderService;
import org.opendaylight.mdsal.dom.api.DOMRpcService;
import org.opendaylight.yangtools.concepts.ListenerRegistration;
import org.opendaylight.controller.cluster.common.actor.AbstractUntypedActor;
import org.opendaylight.controller.remote.rpc.registry.RpcRegistry;
import org.opendaylight.mdsal.dom.api.DOMRpcProviderService;
import org.opendaylight.mdsal.dom.api.DOMRpcService;
import org.opendaylight.yangtools.concepts.ListenerRegistration;
/**
* This class acts as a supervisor, creates all the actors, resumes them, if an exception is thrown. It also registers
/**
* This class acts as a supervisor, creates all the actors, resumes them, if an exception is thrown. It also registers
- return new OneForOneStrategy(10, Duration.create("1 minute"), t -> {
+ return new OneForOneStrategy(10, FiniteDuration.create(1, TimeUnit.MINUTES), t -> {
LOG.error("An exception happened actor will be resumed", t);
return SupervisorStrategy.resume();
});
LOG.error("An exception happened actor will be resumed", t);
return SupervisorStrategy.resume();
});