Interface StreamTracker

    • Method Detail

      • settlementFuture

        java.util.concurrent.Future<Tracker> settlementFuture()
        Returns a future that can be used to wait for the remote to acknowledge receipt of a sent message by settling it.
        Specified by:
        settlementFuture in interface Tracker
        Returns:
        a Future that can be used to wait on remote settlement.
      • awaitSettlement

        StreamTracker awaitSettlement()
                               throws ClientException
        Waits if necessary for the remote to settle the sent delivery unless it has either already been settled or the original delivery was sent settled in which case the remote will not send a Disposition back.
        Specified by:
        awaitSettlement in interface Tracker
        Returns:
        this StreamTracker instance.
        Throws:
        ClientException - if an error occurs while awaiting the remote settlement.
      • awaitSettlement

        StreamTracker awaitSettlement​(long timeout,
                                      java.util.concurrent.TimeUnit unit)
                               throws ClientException
        Waits if necessary for the remote to settle the sent delivery unless it has either already been settled or the original delivery was sent settled in which case the remote will not send a Disposition back.
        Specified by:
        awaitSettlement in interface Tracker
        Parameters:
        timeout - the maximum time to wait for the remote to settle.
        unit - the time unit of the timeout argument.
        Returns:
        this StreamTracker instance.
        Throws:
        ClientException - if an error occurs while awaiting the remote settlement.