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

How to handle IoFuture according to different IoFuture.Status

XMLWordPrintable

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

      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?

       

       

       

       

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

              Created:
              Updated:
              Resolved: