Class S3ClientPooledObjectFactory

java.lang.Object
org.apache.commons.pool2.BaseObject
org.apache.commons.pool2.BasePooledObjectFactory<T>
cn.herodotus.oss.dialect.core.client.AbstractOssClientPooledObjectFactory<com.amazonaws.services.s3.AmazonS3>
cn.herodotus.oss.dialect.s3.definition.pool.S3ClientPooledObjectFactory
All Implemented Interfaces:
org.apache.commons.pool2.PooledObjectFactory<com.amazonaws.services.s3.AmazonS3>

public class S3ClientPooledObjectFactory extends AbstractOssClientPooledObjectFactory<com.amazonaws.services.s3.AmazonS3>

Description: Amazon S3 Client 池化工厂

Author:
: gengwei.zheng
Date:
: 2023/7/14 16:34
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.amazonaws.services.s3.AmazonS3
     

    Methods inherited from class cn.herodotus.oss.dialect.core.client.AbstractOssClientPooledObjectFactory

    getOssProperties, wrap

    Methods inherited from class org.apache.commons.pool2.BasePooledObjectFactory

    activateObject, destroyObject, makeObject, passivateObject, validateObject

    Methods inherited from class org.apache.commons.pool2.BaseObject

    toString, toStringAppendFields

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.commons.pool2.PooledObjectFactory

    destroyObject
  • Constructor Details

    • S3ClientPooledObjectFactory

      public S3ClientPooledObjectFactory(S3Properties s3Properties)
  • Method Details

    • create

      public com.amazonaws.services.s3.AmazonS3 create() throws Exception
      Specified by:
      create in class org.apache.commons.pool2.BasePooledObjectFactory<com.amazonaws.services.s3.AmazonS3>
      Throws:
      Exception