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

jadex.platform.service.message.streams.IOutputConnectionHandler Maven / Gradle / Ivy

Go to download

The Jadex platform package contains implementations of platform services as well as the platform component itself.

There is a newer version: 3.0.117
Show newest version
package jadex.platform.service.message.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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy