[ 
https://issues.apache.org/jira/browse/HTTPCORE-68?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12491096
 ] 

Steffen Pingel commented on HTTPCORE-68:
----------------------------------------

public interface NHttpEntity extends HttpEntity {

    int consumeContent(ContentDecoder decoder, IOControl ioctrl) throws 
IOException;

    void produceContent(ContentEncoder encoder, IOControl ioctrl) throws 
IOException;
}

consume/procduceContent() would be invoked by the service handler from 
input/outputReady() passing the connection for IO control. That allows for 
entites that asynchronously read or write data suspending and resuming events 
as data becomes available.

> Provide NIO entity
> ------------------
>
>                 Key: HTTPCORE-68
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-68
>             Project: HttpComponents Core
>          Issue Type: New Feature
>            Reporter: Steffen Pingel
>
> Provide an interface for entities that support event based processing.
> Related: https://issues.apache.org/jira/browse/HTTPCORE-43#action_12490185 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to