Change-Id: I4dd83824808d3faa2f515901d9171bb8e812d681
Signed-off-by: Jaime Caamaño Ruiz <jaime.caamano.ruiz@ericsson.com>
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.ThreadFactory;
import org.opendaylight.controller.md.sal.binding.api.DataBroker;
import java.util.concurrent.Future;
import java.util.concurrent.ThreadFactory;
import org.opendaylight.controller.md.sal.binding.api.DataBroker;
private static final InstanceIdentifier<PortChain> PORT_CHAIN_IID =
InstanceIdentifier.create(Neutron.class).child(PortChains.class).child(PortChain.class);
private static final InstanceIdentifier<PortChain> PORT_CHAIN_IID =
InstanceIdentifier.create(Neutron.class).child(PortChains.class).child(PortChain.class);
- private final ExecutorService eventProcessor;
private final SfcMdsalHelper sfcMdsalHelper;
private final NeutronMdsalHelper neutronMdsalHelper;
private final OvsdbMdsalHelper ovsdbMdsalHelper;
private final SfcMdsalHelper sfcMdsalHelper;
private final NeutronMdsalHelper neutronMdsalHelper;
private final OvsdbMdsalHelper ovsdbMdsalHelper;
this.ovsdbMdsalHelper = new OvsdbMdsalHelper(db);
this.rspService = rspService;
ThreadFactory threadFactory = new ThreadFactoryBuilder().setNameFormat("Port-Chain-Event-Processor").build();
this.ovsdbMdsalHelper = new OvsdbMdsalHelper(db);
this.rspService = rspService;
ThreadFactory threadFactory = new ThreadFactoryBuilder().setNameFormat("Port-Chain-Event-Processor").build();
- this.eventProcessor = Executors.newSingleThreadExecutor(threadFactory);
@Override
public void add(final InstanceIdentifier<PortChain> path, final PortChain newPortChain) {
processPortChain(newPortChain);
@Override
public void add(final InstanceIdentifier<PortChain> path, final PortChain newPortChain) {
processPortChain(newPortChain);
- eventProcessor.submit(() -> processPortChain(newPortChain));
}
private void processPortChain(PortChain newPortChain) {
}
private void processPortChain(PortChain newPortChain) {