[infinispan-issues] [JBoss JIRA] (ISPN-449) Streaming over Hot Rod

Tristan Tarrant (JIRA) issues at jboss.org
Thu Aug 25 12:21: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 8/25/16 12:20 PM:
----------------------------------------------------------------

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.



was (Author: nadirx):
A possible approach using java.io.Reader and java.io.Writer (inspired by JDBC's LOB support):
{{
Writer w = cache.putStream(k);
w.write(...)
w.close();
}}
The server will not put the entry in the cache until an EOF is received.
Reading would be implemented similarly:

{{Reader r = cache.getStream(k);
r.read(...);
r.close();}}

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