ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhao, Jimmy" <Jimmy.Z...@nccourts.org>
Subject Is there a way to get original object reference from IgniteCache?
Date Mon, 21 Mar 2016 18:48:55 GMT
Is there a way to get original object reference rather than a copy from IgniteCache?

For example, we have a UserProfile object that contains User object and other properties,
and will put this UserProfile object into Ignite cache. After getting User object in somewhere
else, we will change name property User.setName(newValue) at runtime. However, if we do not
get original reference of UserProfile from cache, the changed user name will not be reflected
in the Ignite cache. We know we can use IgniteCache.put(key, UserProfile) again to have cache
updated, but this step and the UserProfile object are not available in other classes.


Thanks

Jimmy Zhao
Applications Analyst Programmer Specialist
Technology Services Division
North Carolina Administrative Office of the Courts
704 765-1695  T

Providing services to help North Carolina's unified court system operate more efficiently
and effectively, taking into account each courthouse's diverse needs, caseloads, and available
resources.


E-mail correspondence to and from this address may be subject to the
North Carolina public records laws and if so, may be disclosed.

Mime
View raw message