@Olaf:
Looking at the API you proposedpublic interface StreamingHandler<K> { void writeToKey(K key, InputStream largeObject); OutputStream writeToKey(K key); InputStream readFromKey(K key); boolean removeKey(K key); StreamingHandler<K> withFlags(Flag... flags); }
and what I actually need:--> see openRecordWriteChannel and openRecordReadChannel
Where the read has a way of jumping back&forth in the channel,and write can seal the written bytes with closeFinally.
Hence I guess we could change it to
Closeable writeToKey(K key, InputStream largeObject); -- returning a handle to seal off (making it immutable from then on)
InputStream readFromKey (K key, long position); -- also taking position into consideration
Wdyt?
(unfortunately I also don't have the time to help with impl,but I'm definitely willing to test it (since I need it anyway, right :-)))
-Ales
_______________________________________________ infinispan-dev mailing list infinispan-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/infinispan-dev