1 package ejava.examples.asyncmarket; 2 3 import java.util.List; 4 5 import ejava.examples.asyncmarket.bo.AuctionItem; 6 import ejava.examples.asyncmarket.bo.Order; 7 8 public interface Buyer { 9 List<AuctionItem> getAvailableItems(int index, int count) 10 throws MarketException; 11 AuctionItem getItem(long itemId) 12 throws MarketException; 13 long bidProduct(long productId, String userId, double amount) 14 throws MarketException; 15 long placeOrder(long productId, String userId, double maxAmount) 16 throws MarketException; 17 Order getOrder(long orderId) 18 throws MarketException; 19 }