jadex.bridge.component.impl.IOrderedConversation 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.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();
}