You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
521 B

8 years ago
  1. /*
  2. * To change this template, choose Tools | Templates
  3. * and open the template in the editor.
  4. */
  5. package com.highcharts.export.pool;
  6. /**
  7. *
  8. * @author gert
  9. */
  10. public interface ObjectPool<T> {
  11. public void createObject();
  12. public void destroyObject(T object);
  13. public T borrowObject() throws InterruptedException, PoolException;
  14. public void returnObject(T object, boolean validate) throws InterruptedException;
  15. public void poolCleaner() throws PoolException, InterruptedException;
  16. public void tempDirCleaner();
  17. }