4 |
|
|
5 |
/** A <code>Collection</code> representing the results |
/** A <code>Collection</code> representing the results |
6 |
* of a lookup that may be continuing on another thread. |
* of a lookup that may be continuing on another thread. |
7 |
* |
* This is an unmodifiable collection, but until |
8 |
|
* the lookup has been finished, additional elements |
9 |
|
* may appear in it. |
10 |
*/ |
*/ |
11 |
public interface Collector extends Collection { |
public interface Collector extends Collection { |
12 |
|
|
13 |
/** Get the number of milliseconds since this request was started. |
/** Get the number of milliseconds since this request was started. |
14 |
* This may be useful in deciding whether to re-lookup the data. |
* This may be useful in deciding whether to re-lookup the data. |
15 |
*/ |
*/ |
16 |
int getAge(); |
long getAge(); |
17 |
|
|
18 |
|
/** Return whether the lookup is completed. |
19 |
|
* If true, this <code>Collection</code> is immutable. |
20 |
|
*/ |
21 |
boolean isReady(); |
boolean isReady(); |
22 |
|
|
23 |
/** |
/** |