Uploaded image for project: 'XNIO'
  1. XNIO
  2. XNIO-416

How to handle IoFuture according to different IoFuture.Status

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Won't Do
    • Major
    • None
    • None
    • api
    • None
    • Undefined

    Description

      We use Undertow as the client lib for outgoing http connection in our light4j/undertow based microservices.

      When calling IoFuture<ClientConnection>.await with a timeout, we want to know how to deal with the IoFuture for each IoFuture statuses.

      For examples, is there any document described the information below:

      • When the status is WAITING, do we need to cancel the future and does it mean a timeout just happened?
      • Is the IoFuture.getException() only available when the status is ERROR and not for others?
      • When the status is set to CANCELLED? Does it mean the IoFuture.get() return null? Is there any resource we need to release?

       

       

       

       

      Attachments

        Activity

          People

            rhn-cservice-bbaranow Bartosz Baranowski
            jsu216 John Su (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: