public class GridStreamerIndexUpdateSync extends Object
Used in GridStreamerIndexProvider to synchronize
operations on window index.
GridStreamerIndexProvider| Constructor and Description |
|---|
GridStreamerIndexUpdateSync() |
| Modifier and Type | Method and Description |
|---|---|
int |
await()
Waits for a notification from another thread, which
should call
finish(int) with an operation result. |
void |
finish(int res)
Notifies all waiting threads to finish waiting.
|
String |
toString() |
public int await()
throws InterruptedException
finish(int) with an operation result.
That result is returned by this method.finish(int).InterruptedException - If wait was interrupted.public void finish(int res)
res - Operation result to return from await().Copyright © 2014. All rights reserved.