I really don't see a need to change the API to support a feature that few people will use. Using IoSessionDataStructureFactory to produce a priority queue provides the necessary flexibility to allow those who need this feature to implement it for their protocol as they see fit.
-Mike Trustin Lee wrote: > Hi community, > > First off, please take a look at the following issue: > > https://issues.apache.org/jira/browse/DIRMINA-428 > > Adrian is asking us to add an optional message priority parameter to > IoSession.write(). For now, user can provide his own > WriteRequestQueue implementation to implement prioritized messaging. > Because most applications won't need message prioritization, the > default configuration will ignore the specified (or default) priority > value. However, the specified priority value will exist as a property > of a WriteRequest so it could be used as a hint for the user's > WriteRequestQueue or IoFilter implementation. > > I think adding this optional parameter might be very useful but I am > also not sure about adding it because it doesn't do anything in the > default configuration. > > What do you think? Any feed back is appreciated. > > Trustin
