Package io.etcd.jetcd.support
Class MemorizingClientSupplier<T extends CloseableClient>
- java.lang.Object
-
- io.etcd.jetcd.support.MemorizingClientSupplier<T>
-
- All Implemented Interfaces:
CloseableClient,java.lang.AutoCloseable,java.util.function.Supplier<T>
public class MemorizingClientSupplier<T extends CloseableClient> extends java.lang.Object implements java.util.function.Supplier<T>, CloseableClient
-
-
Constructor Summary
Constructors Constructor Description MemorizingClientSupplier(java.util.function.Supplier<T> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()close the client and release its resources.Tget()java.lang.StringtoString()
-
-
-
Constructor Detail
-
MemorizingClientSupplier
public MemorizingClientSupplier(java.util.function.Supplier<T> delegate)
-
-
Method Detail
-
get
public T get()
- Specified by:
getin interfacejava.util.function.Supplier<T extends CloseableClient>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
close
public void close()
Description copied from interface:CloseableClientclose the client and release its resources.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceCloseableClient
-
-