@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. |
FileSystem |
getClient(FileSystemContext context)
Returns a
FileSystem client using a specific context. |
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 FileSystem getClient(FileSystemContext context) throws java.io.IOException
FileSystem client using a specific context. This client does not need to be
closed directly, but can be closed by calling close() on this object.context - the FileSystemContext to useFileSystem clientjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionCopyright © 2021. All Rights Reserved.