@Override public void close() { delegate.close(); }
@Override public synchronized void close() throws Exception { this.domChain.close(); if (registration != null) { registration.close(); registration = null; } }
@Override public synchronized void close() { releaseConnection(); this.chain.close(); }
@Override public void close() { delegate().close(); transactions.invalidateAll(); }
@Override public void close() { this.reg.close(); // FIXME: wait for the chain to close? unfortunately RIBImpl is the listener, so that may require some work this.chain.close(); }
@Override public void close() { delegate().close(); }
@Override public void close() { delegate().close(); }
private synchronized void processNextTransaction(final PingPongTransaction tx) { final boolean success = INFLIGHT_UPDATER.compareAndSet(this, tx, null); Preconditions.checkState(success, "Completed transaction %s while %s was submitted", tx, inflightTx); final PingPongTransaction nextTx = READY_UPDATER.getAndSet(this, null); if (nextTx != null) { processTransaction(nextTx); } else if (shutdownTx != null) { processTransaction(shutdownTx); delegate.close(); shutdownTx = null; } }
@Override public void onTransactionChainFailed(final TransactionChain<?, ?> chain, final AsyncTransaction<?, ?> transaction, final Throwable cause) { LOG.error("Transaction chain failed.", cause); this.chain.close(); this.chain = this.rib.createPeerChain(this); this.ribWriter = AdjRibInWriter.create(this.rib.getYangRibId(), this.peerRole, this.simpleRoutingPolicy, this.chain); releaseConnection(); }
it.remove(); this.domTxChain.close(); } catch(final Exception e) { LOG.error("Failed to properly close BMP application.", e);