@Override public void onRemoteDetach(Link link) throws Exception { link.detach(); }
protected void processLinkDetach(Link link) throws Exception { Object context = link.getContext(); if (context instanceof AmqpLink) { ((AmqpLink) context).detach(); } else { link.detach(); link.free(); } }
protected void processLinkDetach(Link link) throws Exception { Object context = link.getContext(); if (context instanceof AmqpLink) { ((AmqpLink) context).detach(); } else { link.detach(); link.free(); } }
@Override public T detach() { link.detach(); getSession().getConnectionImpl().flush(); return self(); }
@Override public void detach() { if (!closed) { if (getEndpoint() != null) { getEndpoint().setContext(null); getEndpoint().detach(); getEndpoint().free(); } } }
@Override public void detach() { if (!closed) { if (getEndpoint() != null) { getEndpoint().setContext(null); getEndpoint().detach(); getEndpoint().free(); } } }
@Override public void onRemoteDetach(Link link) throws Exception { handler.requireHandler(); boolean handleAsClose = link.getSource() != null && ((Source) link.getSource()).getExpiryPolicy() == TerminusExpiryPolicy.LINK_DETACH; if (handleAsClose) { onRemoteClose(link); } else { link.detach(); link.free(); } }
@Override public void onRemoteDetach(Link link) throws Exception { boolean handleAsClose = link.getSource() != null && ((Source) link.getSource()).getExpiryPolicy() == TerminusExpiryPolicy.LINK_DETACH; if (handleAsClose) { onRemoteClose(link); } else { lock(); try { link.detach(); link.free(); } finally { unlock(); } } }