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
10 public interface AuctionMgmt {
11 void closeBidding(long itemId) throws MarketException;
12 Bid getWinningBid(long itemId) throws MarketException;
13 int checkAuction() throws MarketException;
14
15
16 void removeBid(long bidId) throws MarketException;
17 void removeItem(long id) throws MarketException;
18 List<AuctionItem> getItems(int index, int count) throws MarketException;
19
20
21
22 void initTimers(long delay);
23 void initTimers(ScheduleExpression schedule);
24 void cancelTimers();
25 }