ProtonLink.close

Closes the AMQP link, i.e. allows the Detach frame to be emitted with closed=true set.

If the closure is being locally initiated, the {@link #closeHandler(Handler)} should be used to handle the peer sending their Detach frame with closed=true (and {@link #detachHandler(Handler)} can be used to handle the peer sending their Detach frame with closed=false). When use of the link is complete, i.e it is locally and remotely closed, {@link #free()} must be called to ensure related resources can be tidied up.

@return the link

interface ProtonLink(T)
T
close
()

Meta