public void receive(ServicePlatformMessage message) { synchronized (mon) { this.output = message.getBody(); mon.notifyAll(); } }
public void receiveHeartbeat(ServicePlatformMessage message) { synchronized (mon) { this.lastHeartbeat = message.getBody(); mon.notifyAll(); } }