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

Ivan Kelly commented on BOOKKEEPER-334:
---------------------------------------

Also, I think it would be better to change the filter class hierarchy a bit, to 
make it clear if a filter can be serverside, clientside or both. So have
{code}
interface MessageFilterBase {
    public MessageFilter setSubscriptionPreferences(ByteString topic, 
ByteString subscriberId,
                                                    SubscriptionPreferences 
preferences);
    public boolean testMessage(Message message);
}

interface ClientMessageFilter extends MessageFilterBase {
}

interface ServerMessageFilter extends MessageFilterBase {
    ServerMessageFilter initialize(Configuration conf);
    void uninitialized();
}
{code}

                
> client-side message filter for java client.
> -------------------------------------------
>
>                 Key: BOOKKEEPER-334
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-334
>             Project: Bookkeeper
>          Issue Type: Sub-task
>          Components: hedwig-client
>            Reporter: Sijie Guo
>            Assignee: Sijie Guo
>             Fix For: 4.2.0
>
>         Attachments: BOOKKEEPER-334.patch, BOOKKEEPER-334.patch, 
> BOOKKEEPER-334.patch
>
>
> Support running message filter on java client-side.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to