org.semispace.comet.client
Class NotificationMitigator
java.lang.Object
org.semispace.comet.client.NotificationMitigator
- All Implemented Interfaces:
- SemiLease
public class NotificationMitigator
- extends Object
- implements SemiLease
Maintain the client side of a notification.
Method Summary |
protected void |
attach()
|
boolean |
cancel()
Return true if operation was a success |
long |
getHolderId()
|
boolean |
renew(long duration)
Return true if operation was a success |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotificationMitigator
public NotificationMitigator(org.cometd.client.BayeuxClient client,
int callId,
SemiEventListener listener,
long timeOutInMs)
attach
protected void attach()
cancel
public boolean cancel()
- Description copied from interface:
SemiLease
- Return true if operation was a success
- Specified by:
cancel
in interface SemiLease
renew
public boolean renew(long duration)
- Description copied from interface:
SemiLease
- Return true if operation was a success
- Specified by:
renew
in interface SemiLease
getHolderId
public long getHolderId()
- Specified by:
getHolderId
in interface SemiLease
- Returns:
- holder id for the lease
Copyright © 2008-2012. All Rights Reserved.