WriteTransaction writeInvTxn = dataBroker.newWriteOnlyTransaction();
vpnInterfaceManager.processVpnInterfaceUp(dpnId, vpnInterface, ifIndex, false,
writeConfigTxn, writeOperTxn, writeInvTxn);
- List<ListenableFuture<Void>> futures = new ArrayList<ListenableFuture<Void>>();
+ List<ListenableFuture<Void>> futures = new ArrayList<>();
futures.add(writeOperTxn.submit());
futures.add(writeConfigTxn.submit());
futures.add(writeInvTxn.submit());
WriteTransaction writeInvTxn = dataBroker.newWriteOnlyTransaction();
vpnInterfaceManager.processVpnInterfaceDown(dpnId, interfaceName, ifIndex, false, false,
writeConfigTxn, writeOperTxn, writeInvTxn);
- List<ListenableFuture<Void>> futures = new ArrayList<ListenableFuture<Void>>();
+ List<ListenableFuture<Void>> futures = new ArrayList<>();
futures.add(writeOperTxn.submit());
futures.add(writeConfigTxn.submit());
futures.add(writeInvTxn.submit());
WriteTransaction writeInvTxn = dataBroker.newWriteOnlyTransaction();
vpnInterfaceManager.processVpnInterfaceUp(dpnId, vpnInterface, ifIndex,
true, writeConfigTxn, writeOperTxn, writeInvTxn);
- List<ListenableFuture<Void>> futures = new ArrayList<ListenableFuture<Void>>();
+ List<ListenableFuture<Void>> futures = new ArrayList<>();
futures.add(writeOperTxn.submit());
futures.add(writeConfigTxn.submit());
futures.add(writeInvTxn.submit());
WriteTransaction writeInvTxn = dataBroker.newWriteOnlyTransaction();
vpnInterfaceManager.processVpnInterfaceDown(dpnId, interfaceName, ifIndex, true,
false, writeConfigTxn, writeOperTxn, writeInvTxn);
- List<ListenableFuture<Void>> futures = new ArrayList<ListenableFuture<Void>>();
+ List<ListenableFuture<Void>> futures = new ArrayList<>();
futures.add(writeOperTxn.submit());
futures.add(writeConfigTxn.submit());
futures.add(writeInvTxn.submit());