Last active
December 18, 2015 12:29
-
-
Save novoj/5783426 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
V commandu: | |
@Autowired private EdeeUiAsyncConversationManager conversationMgr; | |
public Resolution perform(..) { | |
conversationMgr.addConversation( | |
new UiConversation() extends Conversation implements ApplicationListener { | |
public void onEvent(Application event) { | |
if (event instanceof BatchStoredEvent) { | |
super.newMessage(....) | |
} | |
} | |
}, | |
new TimeToLiveChecker(1000 * 60 * 60) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Samozřejmě místo TimeToLiveCheckeru by mohlo být něco jako:
new ThreadStateChecker() { ... tady se budu ptát threadu, jestli už skončil ... }