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

jadex.bridge.component.impl.IOrderedConversation Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 4.0.267
Show newest version
package jadex.bridge.component.impl;

import java.util.PriorityQueue;

import jadex.bridge.component.impl.remotecommands.AbstractResultCommand;
import jadex.commons.future.IFuture;

/**
 *  Interface for a remote conversation in progress that processes
 *  ordered commands.
 *
 */
public interface IOrderedConversation
{
	/**
	 *  Gets the conversation result future.
	 *  
	 *  @return The future.
	 */
	public IFuture getFuture();
	
	/**
	 *  Gets the count of the next result.
	 *  
	 *  @return The count of the next result.
	 */
	public int getNextResultCount();
	
	/**
	 *  Increases the next result count. 
	 */
	public void incNextResultCount();
	
	/**
	 *  Returns queue of commands that have been deferred due to
	 *  out-of-order arrival.
	 *  
	 *  @return Queue of commands.
	 */
	public PriorityQueue getDeferredCommands();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy