fastdfs-spring-boot-starter
一个简单的基于org.csource.fastdfs.StorageClient1二次封装并提供连接池功能的fastdfs客户端starter.
介绍
说明
工程提供三大接口(扩展点):
操作接口->FastDFSClient,
StorageClient1对象池接口->StorageClientPool,
FastDFS操作模板接口->FastDFSTemplate
基于Java SPI机制,扩展方便,工程默认内部实现是基于commons-pool2将org.csource.fastdfs.StorageClient1池化。
项目结构
fastdfs-spring-boot-starter
└── src
├── main
│ ├── java
│ │ └── com.jccfc
│ │ ├────── fastdfs
│ │ │ ├──────client
│ │ │ │ ├── api
│ │ │ │ │ ├── client
│ │ │ │ │ │ ├── FastDFSClient 操作接口
│ │ │ │ │ │ └── FastDFSClientFactory FastDFSClient工厂
│ │ │ │ │ ├── pool
│ │ │ │ │ │ ├── StorageClient1Wrapper 包装对象
│ │ │ │ │ │ ├── StorageClient1WrapperPool 包装对象池接口
│ │ │ │ │ │ └── StorageClient1WrapperPoolFactory 接口工厂
│ │ │ │ │ └── template
│ │ │ │ │ ├── Executor 执行器函数式接口
│ │ │ │ │ ├── FastDFSTemplate FastDFS操作模板接口
│ │ │ │ │ └── FastDFSTemplateFactory 接口工厂
│ │ │ │ ├── config 参数配置
│ │ │ │ │ └── FastDFSConfig FastDFS配置类
│ │ │ │ ├── exception 异常
│ │ │ │ │ └── JccfcFastDFSException FastDFS异常类
│ │ │ │ └── internal 接口内部实现
│ │ │ │ ├── client
│ │ │ │ │ ├── DefaultFastDFSClient 操作接口默认实现
│ │ │ │