ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Goncharuk (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-553) Need to improve components serialization to use context ignite instance
Date Sun, 22 Mar 2015 23:21:10 GMT
Alexey Goncharuk created IGNITE-553:
---------------------------------------

             Summary: Need to improve components serialization to use context ignite instance
                 Key: IGNITE-553
                 URL: https://issues.apache.org/jira/browse/IGNITE-553
             Project: Ignite
          Issue Type: Improvement
          Components: cache
    Affects Versions: sprint-2
            Reporter: Alexey Goncharuk
             Fix For: sprint-3


As we moving to java8 lambdas, it is impossible to use {{@IgniteInstanceResource}} in lambdas.
As a result, single-jvm ping-pong example does not work.

Suggested fix:
Introduce a static thread-local field which will be set before processing a message and will
be nullified after message is processed. {{IgniteKernal}} should check this thread-local in
{{readResolve}} and return this instance.



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

Mime
View raw message