[JIRA] (COMETD-427) Improve BayeuxServer.createIfAbsent()

12 views
Skip to first unread message

Simone Bordet (JIRA)

unread,
May 13, 2013, 5:07:51 AM5/13/13
to comet...@googlegroups.com
Issue Type: Improvement Improvement
Affects Versions: 2.6.0
Assignee: Unassigned
Components: java-server
Created: 13/May/13 5:07 AM
Description:

BayeuxServer.createIfAbsent() is a bit cumbersome to use.
It returns a boolean, but most of the times the channel is really needed, so it should return a pair(Channel, Boolean) like AtomicMarkableReference.

Also, at least a PersistentInitializer utility class should be provided to mark the channel persistent.

Project: CometD
Priority: Major Major
Reporter: Simone Bordet
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

Simone Bordet (JIRA)

unread,
Jun 12, 2013, 5:22:51 PM6/12/13
to comet...@googlegroups.com
Simone Bordet resolved Improvement COMETD-427 as Fixed

Introduced MarkedReference<ServerChannel> BayeuxServer.createChannelIfAbsent(String, Initializer...) along with utility class Initializer.Persistent to initialize channels to be persistent.

Deprecated BayeuxServer.createIfAbsent(...) in favour of the new method.

Change By: Simone Bordet (12/Jun/13 5:20 PM)
Status: Open Resolved
Assignee: Simone Bordet
Fix Version/s: 2.7.0
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages