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.
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.