Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-678

Reduce number of CompletableFuture allocations during async invocation

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • JDG 7.1.0 GA
    • JDG 7.1.0 ER1
    • Core
    • None
    • ER2

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              dberinde@redhat.com Dan Berindei (Inactive)
              dberinde@redhat.com Dan Berindei (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: