public interface FileStorageClientFactory<Client> extends AutoCloseable
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
close()
释放相关资源
|
Client |
getClient()
获取 Client ,部分存储平台例如 FTP 、 SFTP 使用完后需要归还
|
String |
getPlatform()
获取平台
|
default void |
returnClient(Client client)
归还 Client
|
String getPlatform()
Client getClient()
default void returnClient(Client client)
default void close()
close 在接口中 AutoCloseableCopyright © 2023. All rights reserved.