You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Norman Maurer (JIRA)" <ji...@apache.org> on 2010/11/02 13:05:00 UTC
[jira] Updated: (AMQ-3010) ActiveMQInputStream should allow to
specify a timeout like MessageConsumer.receive() does
[ https://issues.apache.org/activemq/browse/AMQ-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Norman Maurer updated AMQ-3010:
-------------------------------
Attachment: AMQ-3010.diff
The attached patch allows to the user/dev to configure a timeout for the first chunk of data. So if the data is not received within the timeout an ReadTimeoutExecption get thrown. This allows the user/dev to handle it a custom way
> ActiveMQInputStream should allow to specify a timeout like MessageConsumer.receive() does
> -----------------------------------------------------------------------------------------
>
> Key: AMQ-3010
> URL: https://issues.apache.org/activemq/browse/AMQ-3010
> Project: ActiveMQ
> Issue Type: New Feature
> Components: Broker
> Reporter: Norman Maurer
> Attachments: AMQ-3010.diff
>
>
> When using ActiveMQInputStream you are not able todo some kind of polling consuming. As soon as you call ActiveMQInputStream.read() it will block until it receive a message. So it could block forever. Sometime it would be usefull to allow some kind of polling even when using a stream.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.