@Override public void destroy() { sourceSession.destroy(); } }
@Override public void destroy() { session.destroy(); }
/** * Reject all new messages and wait until no messages are pending. Before * returning, this method calls {@link #destroy()}. */ public void close() { synchronized (lock) { closed = true; } if (pendingCount == 0) { done.countDown(); } try { done.await(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } destroy(); }
public void close() { session.destroy(); mbus.destroy(); if (slobrok != null) { slobrok.stop(); } }