|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface SelectRequest
Represents a request for value from a select. Each request holds a list of guards (boolean flags) to indicate, which input channels of the select should be queried, and a routine to invoke once a value is available.
Method Summary | |
---|---|
boolean
|
matchesMask(int index)
Checks, whether the given index should be queried for value or not. |
void
|
valueFound(int index, T value)
Invoked, when a value has been found bound to any of the input channels monitored by the select. |
Method Detail |
---|
public boolean matchesMask(int index)
index
- The index of the input channel to check for guard
public void valueFound(int index, T value)
index
- The index of the input channelvalue
- The value obtained from the channel
Copyright © 2008–2010 Václav Pech. All Rights Reserved.