Stops the protocol handler. @throws Exception if stop fails
()
| 1055 | * @throws Exception if stop fails |
| 1056 | */ |
| 1057 | @Override |
| 1058 | public void stop() throws Exception { |
| 1059 | if (getLog().isInfoEnabled()) { |
| 1060 | getLog().info(sm.getString("abstractProtocolHandler.stop", getName())); |
| 1061 | logPortOffset(); |
| 1062 | } |
| 1063 | |
| 1064 | if (monitorFuture != null) { |
| 1065 | monitorFuture.cancel(true); |
| 1066 | monitorFuture = null; |
| 1067 | } |
| 1068 | stopAsyncTimeout(); |
| 1069 | // Timeout any waiting processor |
| 1070 | for (Processor processor : waitingProcessors) { |
| 1071 | processor.timeoutAsync(-1); |
| 1072 | } |
| 1073 | |
| 1074 | endpoint.stop(); |
| 1075 | } |
| 1076 | |
| 1077 | |
| 1078 | /** |
nothing calls this directly
no test coverage detected