Package ejava.examples.asyncmarket.ejb
Interface AuctionMgmtRemote
-
- All Superinterfaces:
AuctionMgmt
- All Known Implementing Classes:
AuctionMgmtEJB
public interface AuctionMgmtRemote extends AuctionMgmt
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
workAsync(int count, long msecs)
An example of performing an async task while client doesn't wait for result.void
workSync(int count, long msecs)
An example of performing a synchronous task while client has to wait for the result.-
Methods inherited from interface ejava.examples.asyncmarket.AuctionMgmt
cancelTimers, checkAuction, closeBidding, getItems, getWinningBid, initTimers, initTimers, removeBid, removeItem
-
-
-
-
Method Detail
-
workSync
void workSync(int count, long msecs)
An example of performing a synchronous task while client has to wait for the result.- Parameters:
count
- number of tasks to performdelay
- time each task should take
-
workAsync
void workAsync(int count, long msecs)
An example of performing an async task while client doesn't wait for result.- Parameters:
count
- number of tasks to performdelay
- time each task should take
-
-