public static interface Lease.KeepAliveListener
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close KeepAliveListener.
|
LeaseKeepAliveResponse |
listen()
Listen for keep-alive events.
|
LeaseKeepAliveResponse listen() throws InterruptedException
ClosedClientException - if Lease client has been closed.ClosedKeepAliveListenerException - if listener has been
closed.InterruptedException - if listen is interrupted.EtcdException - if KeepAliveListener encounters client side
and server side errors.void close()
close() must be called to release resources of KeepAliveListener.
Copyright © 2017. All rights reserved.