[infinispan-issues] [JBoss JIRA] (ISPN-11550) Add way to detect if calling context is blocking or not

Pedro Zapata Fernandez (Jira) issues at jboss.org
Wed Apr 15 06:18:00 EDT 2020


     [ https://issues.redhat.com/browse/ISPN-11550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pedro Zapata Fernandez reassigned ISPN-11550:
---------------------------------------------

    Assignee: Will Burns


> Add way to detect if calling context is blocking or not
> -------------------------------------------------------
>
>                 Key: ISPN-11550
>                 URL: https://issues.redhat.com/browse/ISPN-11550
>             Project: Infinispan
>          Issue Type: Enhancement
>          Components: Core
>            Reporter: Will Burns
>            Assignee: Will Burns
>            Priority: Major
>
> A user can use either our blocking (Cache#put) or non blocking (Cache#putAsync) API. We should be able to optimize our usage of blocking threads based on this. In the case that the user is using the blocking API, we can assume the thread is a blocking thread (even though we don't control it), which would allow us to not have to spawn additional threads to wait providing for less context switching and better resource utilization.
> The main question is how do we detect such things. An idea is a thread local, command boolean, context flag etc.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list