/*
Asynchronous Engine .
Copyright (C) 2004 Claude Hussenet
Contact : chussenet@yahoo.com
Distributable under LGPL license.
See terms of license at gnu.org.
*/
package org.jboss.aop.asynchronous.aspects;
import org.jboss.aop.asynchronous.AsynchronousResponse;
import org.jboss.aop.asynchronous.ThreadManagerResponse;
import org.jboss.aop.asynchronous.AsynchronousTask;
/**
@version <tt>$Revision: 1.0 $</tt>
@author chussenet@yahoo.com>{Claude Hussenet Independent Consultant}
*/
public interface AsynchronousFacade {
public void setId(String id);
public String getId();
public void setTimeout(long timeout);
public long getTimeout();
public AsynchronousTask getAsynchronousTask();
public void setAsynchronousTask(AsynchronousTask asynchronousTask);
public ThreadManagerResponse getThreadManagerResponse();
public AsynchronousResponse waitForResponse();
public boolean isDone();
public int getResponseCode();
public Object getReturnValue();
public AsynchronousResponse waitForResponse(AsynchronousTask asynchronousTask);
public boolean isDone(AsynchronousTask asynchronousTask);
public int getResponseCode(AsynchronousTask synchronousTask);
public Object getReturnValue(AsynchronousTask asynchronousTask);
}
Comments