[JBoss JIRA] Updated: (NETTY-208) Blocking read handler

Trustin Lee (JIRA) jira-events at lists.jboss.org
Mon Nov 16 07:34:43 EST 2009


     [ https://jira.jboss.org/jira/browse/NETTY-208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Trustin Lee updated NETTY-208:
------------------------------

    Fix Version/s: 3.2.0.ALPHA2
                       (was: 3.2.0.ALPHA1)


> Blocking read handler
> ---------------------
>
>                 Key: NETTY-208
>                 URL: https://jira.jboss.org/jira/browse/NETTY-208
>             Project: Netty
>          Issue Type: Feature Request
>          Components: Transport
>            Reporter: Trustin Lee
>            Assignee: Trustin Lee
>            Priority: Minor
>             Fix For: 3.2.0.ALPHA2
>
>
> It's often useful for a user to wait for a message in a blocking manner rather than handling a message in an event-driven way.  We could add a handler that implements blocking reads:
> BlockingReadHandler reader = new BlockingReadHandler(new UnboundedOrBoundedBlockingQueue());
> pipeline.addLast("reader", reader);
> ...
> ChannelBuffer buf = (ChannelBuffer) reader.read();
> if (buf == null) { /* closed */ }
> else { ... /* handler the event */ }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the netty-dev mailing list