Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-7238

Reduce number of CompletableFuture allocations during async invocation

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 9.0.0.Final
    • None
    • Core
    • None

      The current asynchronous invocations allocate a new CompletableFuture instance (plus a UniHandle, and a ComposedAsyncInvocationStage) for every interceptor that calls compose() or the other InvocationState methods that add a callback.

      We can reduce this by having a list of handlers in each invocation stage, and only creating a new CompletableFuture when we need to change the command.

              dberinde@redhat.com Dan Berindei (Inactive)
              dberinde@redhat.com Dan Berindei (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: