You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by "Hiram Chirino (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2012/04/20 18:56:40 UTC
[jira] [Issue Comment Edited] (APLO-196) Allow to drop a message in
a protocol filter
[ https://issues.apache.org/jira/browse/APLO-196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258370#comment-13258370 ]
Hiram Chirino edited comment on APLO-196 at 4/20/12 4:55 PM:
-------------------------------------------------------------
Hi Pablo,
How about we define a new more powerful Filtering interface. How does this look to you?
/**
* A Protocol filter can filter frames being sent/received to and from a client. It can modify
* the frame or even drop it.
*/
abstract class ProtocolFilter2 {
/**
* Filters a command frame received from a client.
* returns None if the filter wants to drop the frame.
*/
def filter_inbound[T](frame: T):Option[T]
/**
* Filters a command frame being sent client.
* returns None if the filter wants to drop the frame.
*/
def filter_outbound[T](frame: T):Option[T]
}
was (Author: chirino):
Hi Pablo,
How about we define a new more powerful Filtering interface. How does this look to you?
/**
* A Protocol filter can command frame being sent/receive to and from client. It can modify
* the frame or even drop it.
*/
abstract class ProtocolFilter2 {
/**
* Filters a command frame received from a client.
* returns None if the filter wants to drop the frame.
*/
def filter_inbound[T](frame: T):Option[T]
/**
* Filters a command frame being sent client.
* returns None if the filter wants to drop the frame.
*/
def filter_outbound[T](frame: T):Option[T]
}
> Allow to drop a message in a protocol filter
> --------------------------------------------
>
> Key: APLO-196
> URL: https://issues.apache.org/jira/browse/APLO-196
> Project: ActiveMQ Apollo
> Issue Type: New Feature
> Reporter: Pablo Guerrero
>
> This could be implemented by itself, or, when the issue APLO-195 is solved, just by removing the return value of the filtering function.
> Then, you could just resend the current message, if needed, or do nothing in case you want to drop it. Depending of the implementation of APLO-195, a helper function for the resend situation could be handy.
--
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