FileDocCategorySizeDatePackage
Drainable.javaAPI DocJMF 2.1.1e1101Mon May 12 12:20:38 BST 2003javax.media

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.

Fields Summary
Constructors Summary
Methods Summary
public voiddrain()
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.