1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  | package cn.lihu.jh.module.infra.framework.file.core.client; 
 |    
 |  import cn.lihu.jh.module.infra.framework.file.core.enums.FileStorageEnum; 
 |    
 |  public interface FileClientFactory { 
 |    
 |      /** 
 |       * 获得文件客户端 
 |       * 
 |       * @param configId 配置编号 
 |       * @return 文件客户端 
 |       */ 
 |      FileClient getFileClient(Long configId); 
 |    
 |      /** 
 |       * 创建文件客户端 
 |       * 
 |       * @param configId 配置编号 
 |       * @param storage 存储器的枚举 {@link FileStorageEnum} 
 |       * @param config 文件配置 
 |       */ 
 |      <Config extends FileClientConfig> void createOrUpdateFileClient(Long configId, Integer storage, Config config); 
 |    
 |  } 
 |  
  |