|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Channel Consumer interface.
Fields inherited from class java.io.Serializable |
serialVersionUID |
Method Summary | |
void |
dataReceived(Data data)
is called when Data is received for this Client on the given Channel. |
Method Detail |
public void dataReceived(Data data)
The Data object received is to a copy of the Client Data which this consumer can do with as they require.
IMPORTANT NOTE:
This method can potentially be called multiple times concurrently. To protect again this, classes which implement the ChannelConsumer interface should make sure they use the synchronized keyword. Ie:
public synchronized void dataReceived(Data data);
data
- the Data which can be of unlimited size.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |