|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface LeaseListener
LeaseListener is notified by LeaseManager when significant leasing events occur. Note: it important that the callbacks implemented by LeaseListeners execute in a timely manner, so that remote lease clients are not blocked for an excessive amount of time.
| Method Summary | |
|---|---|
void |
leaseEstablishCallback(int id,
long leasePeriod,
long nextEstablishTime,
int numConnections)
Called when a lease is being established. |
void |
leaseExpiredCallback(int id,
long nextEstablishTime,
int numConnections)
Called when lease expires. |
void |
leaseRenewalCallback(int id,
long leasePeriod,
int numConnections)
Called when lease is being renewed. |
void |
leaseTerminatedCallback(int id,
long nextEstablishTime,
int numConnections)
Called when lease is being terminated. |
| Method Detail |
|---|
void leaseEstablishCallback(int id,
long leasePeriod,
long nextEstablishTime,
int numConnections)
throws LeaseRefused
id - lease ID of session being establishedleasePeriod - lease period in millisecondsnextEstablishTime - next estimated lease establishment timenumConnections - Total number of connections on the comms
media, including this one.
LeaseRefused
void leaseTerminatedCallback(int id,
long nextEstablishTime,
int numConnections)
id - lease ID of session being terminatednextEstablishTime - next estimated lease establishment timenumConnections - Total number of connections on the comms
media, after this one has been terminated
void leaseExpiredCallback(int id,
long nextEstablishTime,
int numConnections)
id - lease ID of session being establishednextEstablishTime - next estimated lease establishment timenumConnections - Total number of connections on the comms
media, after this one has expired
void leaseRenewalCallback(int id,
long leasePeriod,
int numConnections)
throws LeaseRefused
id - lease ID of session being renewedleasePeriod - lease period in millisecondsnumConnections - Total number of connections on the comms
media, including this one.
LeaseRefused
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||