View Javadoc
1   package ejava.examples.asyncmarket.ejb;
2   
3   import java.util.Date;
4   import java.util.concurrent.Future;
5   
6   import javax.ejb.Remote;
7   
8   import ejava.examples.asyncmarket.AuctionMgmt;
9   
10  @Remote
11  public interface AuctionMgmtRemote extends AuctionMgmt {
12  	
13  	/**
14  	 * An example of performing a synchronous task while client has to
15  	 * wait for the result.
16  	 * @param count number of tasks to perform
17  	 * @param delay time each task should take
18  	 * @return timestamp when method completed
19  	 */
20  	void workSync(int count, long msecs);
21  	
22  	/**
23  	 * An example of performing an async task while client doesn't
24  	 * wait for result.
25  	 * @param count number of tasks to perform
26  	 * @param delay time each task should take
27  	 */
28  	void workAsync(int count, long msecs);
29  }