You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2011/08/16 17:45:28 UTC

[jira] [Created] (CAMEL-4340) Adjust BrowsableEndpoint with option to dictate if message body can be omitted

Adjust BrowsableEndpoint with option to dictate if message body can be omitted
------------------------------------------------------------------------------

                 Key: CAMEL-4340
                 URL: https://issues.apache.org/jira/browse/CAMEL-4340
             Project: Camel
          Issue Type: Improvement
          Components: camel-core
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
            Priority: Minor
             Fix For: 2.9.0


If an endpoint is browsable, then it implements the BrowsableEndpoint interface.

It currently has this API
{code}
    List<Exchange> getExchanges();
}
{code}

We should improve the API by adding a boolean to indicate the message body can be omitted. For example if the body is not really needed. Or if loading the body could potentially consume a lot of memory etc.
{code}
    List<Exchange> getExchanges(boolean omitMessageBodyAllowed);
}
{code}

We could also go a bit further and allow an API to query depth size, return a range, return an iterator, etc.

We can keep the old API to be backwards compatible and mark it as @deprecated.


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

        

[jira] [Updated] (CAMEL-4340) Adjust BrowsableEndpoint with option to dictate if message body can be omitted

Posted by "Claus Ibsen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-4340:
-------------------------------

    Fix Version/s:     (was: 2.9.0)
                   2.10
    
> Adjust BrowsableEndpoint with option to dictate if message body can be omitted
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-4340
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4340
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.10
>
>
> If an endpoint is browsable, then it implements the BrowsableEndpoint interface.
> It currently has this API
> {code}
>     List<Exchange> getExchanges();
> }
> {code}
> We should improve the API by adding a boolean to indicate the message body can be omitted. For example if the body is not really needed. Or if loading the body could potentially consume a lot of memory etc.
> {code}
>     List<Exchange> getExchanges(boolean omitMessageBodyAllowed);
> }
> {code}
> We could also go a bit further and allow an API to query depth size, return a range, return an iterator, etc.
> We can keep the old API to be backwards compatible and mark it as @deprecated.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira