Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/flexstor/common/threadmgr/ThreadCallbackI.java


1   /*
2    * ThreadCallbackI.java
3    *
4    * Copyright $Date: 2003/08/11 02:22:35 $ FLEXSTOR.net Inc.
5    *
6    * This work is licensed for use and distribution under license terms found at
7    * http://www.flexstor.org/license.html
8    *
9    */
10  
11  package com.flexstor.common.threadmgr;
12  
13  /**
14   * Callback interface to be used with ThreadManager
15   * @author Dan Schroeder
16   * @version 3.0
17   */
18  public interface ThreadCallbackI
19  {
20     /**
21      * Called when a thread task is about to begin.
22      * @param consumer the instance that this task will run against.
23      * @param obj      the user defined parameter for this task.
24      */
25     public void threadTaskStart ( ThreadConsumerI consumer, Object obj );
26  
27     /**
28      * Called when a thread task has just finished.
29      * @param consumer the instance that this task will run against.
30      * @param obj      the user defined parameter for this task.
31      */
32     public void threadTaskEnd ( ThreadConsumerI consumer, Object obj );
33  }