[jboss-dev-forums] [Design of JBossCache] - Re: PojoInstance: ref count & notification
jason.greene@jboss.com
do-not-reply at jboss.com
Tue Apr 10 17:51:10 EDT 2007
"supi" wrote :
| Basically, your second question is the answer to the first one. I simply need to know whether this is the first attach or not and also if it is the last detach or not. Depending on this flag (in my interface, the two methods look like this:
|
| | public void attach(Object inObject, boolean inIsFirst, boolean inIsLocal);
| | public void detach(Object inObject, boolean inIsLast, boolean inIsLocal);
| |
| and are always post), an external processing unit can create related information, delete it, or do nothing.
|
Ok, I understand your case, so I will add something similar. Although we might want to introduce some kind of context object that would contain useful information like this.
anonymous wrote :
| Of course, it would be great if something like this could be included. Unfortunately, I really need it now and my solution seems to work for the moment. It just bothers me that I had to change some of the internals (OTOH, I could also always switch to an entirely external reference counting scheme).
|
Understood. Well your approach is perfectly valid, so if you make whatever internal changes you need (modifying increment/decrementRefCount to add another attribute should solve your issue), and just let us know the features, we can get something similar in place that should be an easy migration. I would like to work out all design kinks by GA since after that point we have to worry about BC.
-Jason
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036154#4036154
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036154
More information about the jboss-dev-forums
mailing list