All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.fmj.media.InputConnector Maven / Gradle / Ivy

There is a newer version: 1.0.2-jitsi
Show newest version
package net.sf.fmj.media;

import javax.media.*;

/**
 * InputConnector defines the buffer movement and format typing interface for
 * input connectors.
 *
 * @see OutputConnector
 *
 */
public interface InputConnector extends Connector
{
    /**
     * Return the OutputConnector this InputConnector is connected to. If this
     * Connector is unconnected return null.
     */
    public OutputConnector getOutputConnector();

    /**
     * Get buffer object containing media.
* The exact behavior depands on the protocol: *
    *
  • ProtocolPush - if buffer is not available throws * RuntimeException
  • *
  • ProtocolSafe - if buffer is available read the buffer and * perform notify() on the connection.
    * if buffer is not available perform wait() on the connection.
  • *
* */ public Buffer getValidBuffer(); /** * checks if there are valid Buffer objects in the Connector's queue. * * @return if there are vaild Buffer objects in the Connector's queue. */ public boolean isValidBufferAvailable(); /** * Indicates the oldest Buffer object got from this Connector was used and * can be "recycled" by the upstream Module.
* if such buffer Objects does not exists throws RuntimeException. The exact * behavior depands on the protocol: *
    *
  • ProtocolPush - no operation.
  • *
  • ProtocolSafe - perform notify() on the connection lock object. *
    *
* */ public void readReport(); /** * Sets the OutputConnector this InputConnector is connected to. This method * is called by the connectTo() method of the OutputConnector. */ public void setOutputConnector(OutputConnector outputConnector); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy