public Receiver test(Link link) { if (link instanceof Receiver && matchSource((Source) link.getSource(), _path)) { return (Receiver) link; } else { return null; } }
public Receiver test(Link link) { if (link instanceof Receiver && matchSource((Source) link.getSource(), _path)) { return (Receiver) link; } else { return null; } }
public Receiver test(Link link) { if (link instanceof Receiver && matchSource((Source) link.getSource(), _path)) { return (Receiver) link; } else { return null; } }
@Override public Source getSource() { return link.getSource(); }
@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(); } } }
logger.LogInfo("Inform listener that a message has been sent to IoT Hub along with remote state, method name is %s ", logger.getMethodName()); if (!event.getLink().getSource().getAddress().equalsIgnoreCase(AmqpsDeviceAuthenticationCBS.RECEIVER_LINK_ENDPOINT_PATH))
pumpIn( link.getSource().getAddress(), (Receiver)link );
pumpIn( link.getSource().getAddress(), (Receiver)link );