[jboss-dev-forums] [Design of JBossCache] - Re: Last chance for any changes to the 2.0.0 API
galder.zamarreno@jboss.com
do-not-reply at jboss.com
Tue Dec 19 10:28:36 EST 2006
Guys, the change I'm currently working on to add VAM to JDBCCacheLoader would need an interface change. I haven't yet finished testing it to make sure that it's certainly more performant.
The change is this:
org.jboss.cache.marshall.ObjectStreamFactory
public ObjectInputStream createObjectInputStream(InputStream in) throws IOException;
JavaObjectStreamFactory and JBossObjectStreamFactory would implement it.
VAM would add:
public Object objectFromInputStream(InputStream is) throws Exception
Finally, JDBCCacheLoader would call:
Object marshalledNode = getMarshaller().objectFromInputStream(is);
passing, InputStream is = rs.getBinaryStream(1); // ResultSet
Would you guys be happy for me to include this before finishing with http://jira.jboss.com/jira/browse/JBCACHE-879?
Without this methods, I would have to loop through the InputStream to create a byte[] containing this data which would a waste of time.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995031#3995031
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995031
More information about the jboss-dev-forums
mailing list