FileDocCategorySizeDatePackage
Rule.javaAPI DocGlassfish v2 API3098Fri May 04 22:37:06 BST 2007com.sun.enterprise.web.connector.grizzly

Rule

public interface Rule implements Callable
A rule is used to define operations, and can be executed by invoking call directly or using any objects that supports the Callable interface. The rule can always be cancelled based on its Futore.
author
Jeanfrancois Arcand

Fields Summary
Constructors Summary
Methods Summary
public voidattach(E o)
Attach a E to this rule.

public Eattachement()
Return the current attachement

public voidcancel()
Cancel execution of this rule.

public intgetExecutionTime()
Return the time in second before this rule will be executed.

public voidsetExecutionTime(int time)
Set the interval in seconds to wait before executing this rule.

public voidsetFuture(java.util.concurrent.Future future)
Set the Future associated with this execution of this rule.