javax.media
Interface Drainable


public interface Drainable

This interface would be implemented on a Renderer or Multiplexer plugin if the plugin's internal buffered data can be drained.


Method Summary
 void drain()
          Drains the queued data from a Renderer or Multiplexer plugin by continuing the processing until the internal buffer is empty.
 

Method Detail

drain

public void drain()
Drains the queued data from a Renderer or Multiplexer plugin by continuing the processing until the internal buffer is empty. The method blocks until the draining is complete.
If drain() is invoked on a stopped Renderer or Multiplexer that has buffered data, the method will block until the plugin is started and the data buffer becomes empty. If drain() is invoked by one thread, and another continues to fill the data queue, the operation will not complete.
To abort a drain call, the reset and close method on the plugin can be used.


Submit a bug or feature
Copyright 1999-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.