Class MinioTemplate

java.lang.Object
org.bremersee.minio.MinioTemplate
All Implemented Interfaces:
Cloneable, MinioOperations

public class MinioTemplate extends Object implements MinioOperations, Cloneable
The minio template.
Author:
Christian Bremer
  • Constructor Details

    • MinioTemplate

      public MinioTemplate(io.minio.MinioClient client)
      Instantiates a new minio template.
      Parameters:
      client - the client
  • Method Details

    • setErrorHandler

      public void setErrorHandler(org.springframework.util.ErrorHandler errorHandler)
      Sets error handler.
      Parameters:
      errorHandler - the error handler
    • clone

      public MinioTemplate clone()
      Overrides:
      clone in class Object
    • clone

      public MinioTemplate clone(org.springframework.util.ErrorHandler errorHandler)
      Clone minio template.
      Parameters:
      errorHandler - the error handler
      Returns:
      the minio template
    • execute

      public <T> T execute(MinioClientCallback<T> callback)
      Description copied from interface: MinioOperations
      Execute minio callback.
      Specified by:
      execute in interface MinioOperations
      Type Parameters:
      T - the type of the result
      Parameters:
      callback - the callback
      Returns:
      the result