javax.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.


方法摘要
 void drain()
          Drains the queued data from a Renderer or Multiplexer plugin by continuing the processing until the internal buffer is empty.
 

方法详细信息

drain

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.