Executes the given runnable. This prevents exceptions from propagating so that an exception thrown by one callback won't prevent subsequent callbacks from being executed.
(Executor executor, Runnable runnable)
| 177 | * thrown by one callback won't prevent subsequent callbacks from being executed. |
| 178 | */ |
| 179 | private static void doExecute(Executor executor, Runnable runnable) { |
| 180 | try { |
| 181 | executor.execute(runnable); |
| 182 | } catch (Throwable th) { |
| 183 | log.log(Level.SEVERE, "Failed to execute PingCallback", th); |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | /** |
| 188 | * Returns a runnable that, when run, invokes the given callback, providing the given round-trip |
no test coverage detected