[infinispan-issues] [JBoss JIRA] (ISPN-449) Streaming over Hot Rod
Tristan Tarrant (JIRA)
issues at jboss.org
Wed Sep 28 09:16:00 EDT 2016
[ https://issues.jboss.org/browse/ISPN-449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13284414#comment-13284414 ]
Tristan Tarrant edited comment on ISPN-449 at 9/28/16 9:15 AM:
---------------------------------------------------------------
A possible approach using java.io.OutputStream and java.io.InputStream (inspired by JDBC's LOB support):
{code:java}
OutputStream w = cache.putStream(k);
w.write(...)
w.close();
{code}
The server will not put the entry in the cache until an EOF is received.
Reading would be implemented similarly:
{code:java}
InputStream r = cache.getStream(k);
r.read(...);
r.close();
{code}
Additionally we could support skip() to allow reading / writing from a specific offset.
was (Author: nadirx):
A possible approach using java.io.Reader and java.io.Writer (inspired by JDBC's LOB support):
{code:java}
Writer w = cache.putStream(k);
w.write(...)
w.close();
{code}
The server will not put the entry in the cache until an EOF is received.
Reading would be implemented similarly:
{code:java}
Reader r = cache.getStream(k);
r.read(...);
r.close();
{code}
Additionally we could support skip() to allow reading / writing from a specific offset.
> Streaming over Hot Rod
> ----------------------
>
> Key: ISPN-449
> URL: https://issues.jboss.org/browse/ISPN-449
> Project: Infinispan
> Issue Type: Feature Request
> Components: Remote Protocols
> Reporter: Galder Zamarreño
> Assignee: Galder Zamarreño
> Labels: hackathon
>
> Extend large object support/streaming to Hot Rod
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the infinispan-issues
mailing list