Interface Poolable<T>

Type Parameters:
T - 对象类型
All Superinterfaces:
Provider, Wrapper<T>
All Known Implementing Classes:
PartitionPoolable

public interface Poolable<T> extends Wrapper<T>
池化对象
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    获取最后借出时间
    void
    setLastBorrow(long lastBorrow)
    设置最后借出时间,在成功借出此对象时更新时间

    Methods inherited from interface org.miaixz.bus.core.lang.Wrapper

    getRaw, type
  • Method Details

    • getLastBorrow

      long getLastBorrow()
      获取最后借出时间
      Returns:
      最后借出时间
    • setLastBorrow

      void setLastBorrow(long lastBorrow)
      设置最后借出时间,在成功借出此对象时更新时间
      Parameters:
      lastBorrow - 最后借出时间