예제 #1
0
 public void receive(ServicePlatformMessage message) {
   synchronized (mon) {
     this.output = message.getBody();
     mon.notifyAll();
   }
 }
예제 #2
0
 public void receiveHeartbeat(ServicePlatformMessage message) {
   synchronized (mon) {
     this.lastHeartbeat = message.getBody();
     mon.notifyAll();
   }
 }