Class RequestResponseWorkItem


  • public class RequestResponseWorkItem
    extends Object
    • Constructor Detail

      • RequestResponseWorkItem

        public RequestResponseWorkItem​(org.apache.qpid.proton.message.Message request,
                                       TransactionContext transaction,
                                       CompletableFuture<org.apache.qpid.proton.message.Message> completableFuture,
                                       TimeoutTracker tracker)
      • RequestResponseWorkItem

        public RequestResponseWorkItem​(org.apache.qpid.proton.message.Message request,
                                       TransactionContext transaction,
                                       CompletableFuture<org.apache.qpid.proton.message.Message> completableFuture,
                                       Duration timeout)
    • Method Detail

      • getRequest

        public org.apache.qpid.proton.message.Message getRequest()
      • setTimeoutTask

        public void setTimeoutTask​(ScheduledFuture<?> timeoutTask)
      • cancelTimeoutTask

        public boolean cancelTimeoutTask​(boolean mayInterruptIfRunning)
      • getLastKnownException

        public Exception getLastKnownException()
      • setLastKnownException

        public void setLastKnownException​(Exception exception)