[infinispan-issues] [JBoss JIRA] (ISPN-7399) Make visitCommand return an Object instead of an InvocationStage

Dan Berindei (JIRA) issues at jboss.org
Wed Jan 25 10:11:00 EST 2017


Dan Berindei created ISPN-7399:
----------------------------------

             Summary: Make visitCommand return an Object instead of an InvocationStage
                 Key: ISPN-7399
                 URL: https://issues.jboss.org/browse/ISPN-7399
             Project: Infinispan
          Issue Type: Task
          Components: Core
    Affects Versions: 9.0.0.Beta2
            Reporter: Dan Berindei
            Assignee: Dan Berindei
             Fix For: 9.0.0.Beta3


Replicated read benchmarks show a significant amount of time spent in {{BasicInvocationStage.toInvocationStage()}}.

We can make {{visitCommand}} return an {{Object}} instead of an {{InvocationStage}}, and that return value can be cast to an {{InvocationStage}} when a callback is needed. We can't call {{thenApply()}} etc. directly on an {{Object}}, but we can combine {{invokeNext(ctx, command).thenApply(function)}} into {{invokeNextThenApply(ctx, command, function)}}.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the infinispan-issues mailing list