Skip to content

Instantly share code, notes, and snippets.

@novoj
Last active December 18, 2015 12:29
Show Gist options
  • Save novoj/5783426 to your computer and use it in GitHub Desktop.
Save novoj/5783426 to your computer and use it in GitHub Desktop.
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)
);
}
@novoj
Copy link
Author

novoj commented Jun 14, 2013

Samozřejmě místo TimeToLiveCheckeru by mohlo být něco jako:

new ThreadStateChecker() { ... tady se budu ptát threadu, jestli už skončil ... }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment