Add support for removeOnCancelPolicy

This change removes the recently added SockJsThreadPoolTaskScheduler
and instead builds support for the removeOnCancelPolicy property in
ThreadPoolTaskScheduler and ScheduledExecutorFactoryBean.

Issue: SPR-11918
This commit is contained in:
Rossen Stoyanchev
2014-06-29 14:28:52 -04:00
parent 7da3fb4ce6
commit 7441f23012
7 changed files with 87 additions and 78 deletions

View File

@@ -170,7 +170,7 @@ public class SubProtocolWebSocketHandlerTests {
assertTrue(session1.isOpen());
assertFalse(session2.isOpen());
assertNull(session1.getCloseStatus());
assertEquals(CloseStatus.PROTOCOL_ERROR, session2.getCloseStatus());
assertEquals(CloseStatus.SESSION_NOT_RELIABLE, session2.getCloseStatus());
}