com.sun.media.jsdt
Interface ChannelConsumer


public abstract interface ChannelConsumer
extends java.io.Serializable

The Channel Consumer interface.

Since:
JSDT 1.0
Version:
1.5 - 7th January 1999
Author:
Rich Burridge

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

dataReceived

public void dataReceived(Data data)
is called when Data is received for this Client on the given Channel.

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);
 
Parameters:
data - the Data which can be of unlimited size.