|  |  | 
 |  |  |  | 
 |  |  | public class BedCloseCallable implements Callable<ErrorCode> { | 
 |  |  |  | 
 |  |  |     QueueService queueService; | 
 |  |  |     QueueServiceTxFunctions queueService; | 
 |  |  |     private Long roomId; | 
 |  |  |     private String bedNo; | 
 |  |  |  | 
 |  |  |     public BedCloseCallable(QueueService queueService, Long roomId, String bedNo) | 
 |  |  |     public BedCloseCallable(QueueServiceTxFunctions queueService, Long roomId, String bedNo) | 
 |  |  |     { | 
 |  |  |         super(); | 
 |  |  |         this.roomId = roomId; | 
 |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public ErrorCode call() throws Exception { | 
 |  |  |         return queueService.bedClose(roomId, bedNo); | 
 |  |  |         ErrorCode ec = queueService.bedClose(roomId, bedNo); | 
 |  |  |  | 
 |  |  |         queueService.monitorInfo(); | 
 |  |  |         return ec; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | } |