You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Steffen Pingel (JIRA)" <ji...@apache.org> on 2007/04/24 00:51:15 UTC

[jira] Commented: (HTTPCORE-68) Provide NIO entity

    [ 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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org