avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Carey (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-539) Allow asynchronous clients to specify a callback to be run when server processing completes
Date Thu, 02 Jun 2011 21:11:47 GMT

    [ https://issues.apache.org/jira/browse/AVRO-539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13043049#comment-13043049
] 

Scott Carey commented on AVRO-539:
----------------------------------

bq. Can you think of a better way to make the new interfaces optional?

Make the SpecificCompiler take it as an option, and ant/maven can pass in a flag to enable
it?  Can this option leverage templates?


bq. Note that this is one case where it would be more useful to use the Future API rather
than the Callback API.

Futures are very useful for using an asynchronous API in a synchronous fashion, or in hybrid
use cases.  Callbacks require more caution with concurrency issues, since the client does
not control the thread that executes the callback.

> Allow asynchronous clients to specify a callback to be run when server processing completes
> -------------------------------------------------------------------------------------------
>
>                 Key: AVRO-539
>                 URL: https://issues.apache.org/jira/browse/AVRO-539
>             Project: Avro
>          Issue Type: New Feature
>            Reporter: Jeff Hammerbacher
>         Attachments: AVRO-539.patch
>
>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message