Class GPTChatCompletionServiceImpl.EnsureResultFutureCallback

  • All Implemented Interfaces:
    org.apache.hc.core5.concurrent.FutureCallback<Void>
    Enclosing class:
    GPTChatCompletionServiceImpl

    protected static class GPTChatCompletionServiceImpl.EnsureResultFutureCallback
    extends Object
    implements org.apache.hc.core5.concurrent.FutureCallback<Void>
    Makes doubly sure that result is somehow set after the call.
    • Method Detail

      • completed

        public void completed​(Void result)
        Specified by:
        completed in interface org.apache.hc.core5.concurrent.FutureCallback<Void>
      • failed

        public void failed​(Exception ex)
        Specified by:
        failed in interface org.apache.hc.core5.concurrent.FutureCallback<Void>
      • cancelled

        public void cancelled()
        Specified by:
        cancelled in interface org.apache.hc.core5.concurrent.FutureCallback<Void>