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
com.coreos.jetcd.common.exception.ClosedClientException - if Lease client has been closed.com.coreos.jetcd.common.exception.ClosedKeepAliveListenerException - if listener has been
closed.InterruptedException - if listen is interrupted.com.coreos.jetcd.common.exception.EtcdException - if KeepAliveListener encounters client side
and server side errors.void close()
close() must be called to release resources of KeepAliveListener.
Copyright © 2018. All rights reserved.