jadex.bridge.component.streams.IOutputConnectionHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-platform-bridge Show documentation
Show all versions of jadex-platform-bridge Show documentation
Jadex bridge is a base package for kernels and platforms, i.e., it is used by both and provides commonly used interfaces and classes for active components and their management.
package jadex.bridge.component.streams;
import jadex.commons.future.IFuture;
/**
*
*/
public interface IOutputConnectionHandler extends IAbstractConnectionHandler
{
/**
* Called from connection.
*/
public IFuture send(final byte[] dat);
/**
* Wait until the connection is ready for the next write.
* @return Calls future when next data can be written. Provides a value of how much data should be given to the connection for best performance.
*/
public IFuture waitForReady();
/**
* Flush the data.
*/
public void flush();
}