protected void advertiseAlive(final LocalDevice localDevice) { registry.executeAsyncProtocol(new Runnable() { public void run() { try { log.finer("Sleeping some milliseconds to avoid flooding the network with ALIVE msgs"); Thread.sleep(randomGenerator.nextInt(100)); } catch (InterruptedException ex) { log.severe("Background execution interrupted: " + ex.getMessage()); } registry.getProtocolFactory().createSendingNotificationAlive(localDevice).run(); } }); }
protected void renewOutgoingSubscription(final RemoteGENASubscription subscription) { registry.executeAsyncProtocol( registry.getProtocolFactory().createSendingRenewal(subscription) ); } }
protected void advertiseByebye(final LocalDevice localDevice, boolean asynchronous) { final SendingAsync prot = registry.getProtocolFactory().createSendingNotificationByebye(localDevice); if (asynchronous) { registry.executeAsyncProtocol(prot); } else { prot.run(); } }
protected void advertiseAlive(final LocalDevice localDevice) { registry.executeAsyncProtocol(new Runnable() { public void run() { try { log.finer("Sleeping some milliseconds to avoid flooding the network with ALIVE msgs"); Thread.sleep(randomGenerator.nextInt(100)); } catch (InterruptedException ex) { log.severe("Background execution interrupted: " + ex.getMessage()); } registry.getProtocolFactory().createSendingNotificationAlive(localDevice).run(); } }); }
protected void renewOutgoingSubscription(final RemoteGENASubscription subscription) { registry.executeAsyncProtocol( registry.getProtocolFactory().createSendingRenewal(subscription) ); } }
protected void advertiseByebye(final LocalDevice localDevice, boolean asynchronous) { final SendingAsync prot = registry.getProtocolFactory().createSendingNotificationByebye(localDevice); if (asynchronous) { registry.executeAsyncProtocol(prot); } else { prot.run(); } }
protected void advertiseAlive(final LocalDevice localDevice) { registry.executeAsyncProtocol(new Runnable() { public void run() { try { log.finer("Sleeping some milliseconds to avoid flooding the network with ALIVE msgs"); Thread.sleep(randomGenerator.nextInt(100)); } catch (InterruptedException ex) { log.severe("Background execution interrupted: " + ex.getMessage()); } registry.getProtocolFactory().createSendingNotificationAlive(localDevice).run(); } }); }
protected void renewOutgoingSubscription(final RemoteGENASubscription subscription) { registry.executeAsyncProtocol( registry.getProtocolFactory().createSendingRenewal(subscription) ); } }
protected void advertiseByebye(final LocalDevice localDevice, boolean asynchronous) { final SendingAsync prot = registry.getProtocolFactory().createSendingNotificationByebye(localDevice); if (asynchronous) { registry.executeAsyncProtocol(prot); } else { prot.run(); } }