View Javadoc
1   package ejava.examples.asyncmarket;
2   
3   import java.util.List;
4   
5   import javax.ejb.ScheduleExpression;
6   
7   import ejava.examples.asyncmarket.bo.AuctionItem;
8   import ejava.examples.asyncmarket.bo.Bid;
9   import ejava.examples.asyncmarket.ejb.ResourceNotFoundException;
10  
11  public interface AuctionMgmt {
12      void closeBidding(long itemId) throws ResourceNotFoundException;
13      Bid getWinningBid(long itemId) throws ResourceNotFoundException;
14      int checkAuction();
15      
16      //cleanup functions
17      void removeBid(long bidId) throws ResourceNotFoundException;
18      void removeItem(long itemId) throws ResourceNotFoundException;
19      List<AuctionItem> getItems(int index, int count);
20  
21      
22      //infrastructure functions
23      void initTimers(long delay);
24      void initTimers(ScheduleExpression schedule);
25      void cancelTimers();
26  }