Revision 28484 branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/resource/ResourceManager.java

View differences:

ResourceManager.java
26 26
	public Iterator iterator();
27 27

  
28 28
	/**
29
	 * Iterates over the resources and frees them if they are ready to
30
	 * be freed.
31
	 *
29
	 * Iterates over the resources and frees them if they are ready to be freed
30
	 * or try to close them if they are idle.
31
	 * 
32 32
	 * @throws DataException
33
	 * @see {@link ResourceManager#getTimeToBeIdle()}
34
	 *      {@link ResourceManager#setTimeToBeIdle(int)}
33 35
	 */
34 36
	public void collectResources() throws DataException;
35 37

  
36 38
	/**
39
	 * Returns the wait time to consider that a resource is idle in seconds.
40
	 * Used in collect resouces action. <br>
41
	 * if is lower than 1 never is idle.
42
	 *
43
	 * @return seconds
44
	 *
45
	 * @see {@link ResourceManager#collectResources()}
46
	 * @see {@link ResourceManager#startResourceCollector(long, Observer)}
47
	 */
48
	public int getTimeToBeIdle();
49

  
50
	/**
51
	 * Sets the wait time to consider that a resource is idle. Used in collect
52
	 * resouces action. <br>
53
	 * if is lower than 1 never is idle.
54
	 *
55
	 * @see {@link ResourceManager#collectResources()}
56
	 * @see {@link ResourceManager#startResourceCollector(long, Observer)}
57
	 */
58

  
59
	public void setTimeToBeIdle(int seconds);
60

  
61
	/**
37 62
	 * Initializes the resource collection background process. Allows setting
38 63
	 * of the delay between each execution of the collector and also an
39 64
	 * observer to be notified on each execution.

Also available in: Unified diff