Interface Listener<T>

All Known Implementing Classes:
TakenListener

public interface Listener<T>
An instance of this interface can be supplied to the pool at its creation time, and its methods will be called upon calling the pool take and restore operations.
Author:
Simeon Malchev
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onRestore(T object, boolean valid)
     
    void
    onTake(T object)
     
  • Method Details

    • onTake

      void onTake(T object)
    • onRestore

      void onRestore(T object, boolean valid)