You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Valentin Kulichenko (JIRA)" <ji...@apache.org> on 2015/07/23 09:29:04 UTC

[jira] [Created] (IGNITE-1144) Need to have a capability to run a closure collocated with a queue/set

Valentin Kulichenko created IGNITE-1144:
-------------------------------------------

             Summary: Need to have a capability to run a closure collocated with a queue/set
                 Key: IGNITE-1144
                 URL: https://issues.apache.org/jira/browse/IGNITE-1144
             Project: Ignite
          Issue Type: Bug
          Components: cache
    Affects Versions: 1.1.4
            Reporter: Valentin Kulichenko
            Priority: Critical


Currently there is no way to do this since all collocated queues and sets are stored in special system cache. This makes {{affinityRun()}} and {{affinityCall()}} methods useless because it requires to explicitly provide cache name which user doesn't know in this case.

I suggest to add {{affinityRun()}} and {{affinityCall()}} methods on {{IgniteQueue}} and {{IgniteSet}}. They will:
* take only closure as a parameter
* throw exception for non-collocated mode
* properly delegate to sibling methods in {{Ignite}} with proper cache name



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)