[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: JBMESSAGING-549 - Lease set to -1 causes exception
tom.elrod@jboss.com
do-not-reply at jboss.com
Thu Sep 21 23:15:26 EDT 2006
To make things a little simplier, do you think it would be useful to add another method such as:
void setLeaseEnabled(boolean)
If call setLeaseEnabled(boolean) passed false and are current lease session, will clean them up. If passed true, will accept lease sessions even if no connection listeners (will just have no one to notify).
Also, if try to call setLeasePeriod(long period) with number < 0, will throw an exception.
Although a little more blunt in how things are handled, is much simplier from user API perspective.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973453#3973453
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973453
More information about the jboss-dev-forums
mailing list