/** * Close this event source. * * The method will wait up to 5 seconds for the internal event processing task to complete. */ public void close() { close(5, TimeUnit.SECONDS); }
/** * Close this event source. * * The method will wait up to 5 seconds for the internal event processing task to complete. */ public void close() { close(5, TimeUnit.SECONDS); }
/** * Close this event source. * * The method will wait up to 5 seconds for the internal event processing task to complete. */ public void close() { close(5, TimeUnit.SECONDS); }
/** * Close this event source. * * The method will wait up to 5 seconds for the internal event processing task to complete. */ public void close() { close(5, TimeUnit.SECONDS); }
@Override public void close() { synchronized (closeLock) { isShuttingDown = true; try { timer.cancel(); } finally { eventSource.close(); } } } }
eventSource.close(); log.info("Closed connection to SSE source");
eventSource.open(); Thread.sleep(100); eventSource.close();