@ThreadSafe
public final class ClientPool
extends java.lang.Object
implements java.io.Closeable
FileSystem) returned. The main reason for this is
to build cleanup clients.| Modifier and Type | Method and Description |
|---|---|
void |
close() |
FileSystem |
getClient()
Returns a
FileSystem client. |
public FileSystem getClient() throws java.io.IOException
FileSystem client. This client does not need to be
closed directly, but can be closed by calling close() on this object.FileSystem clientjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionCopyright © 2017. All Rights Reserved.