public ConversationContext create(String conversationName, String conversationId, long maxIdleTime) {
return new DefaultConversationContext(conversationName, conversationId, maxIdleTime);
}
});
TaskThread contractionThread = BasicTaskThread.spawnInstance();
CollectionContractionTask collectionContractionTask = new CollectionContractionTask(manager);
contractionThread.addTask(collectionContractionTask);
TaskThread expansionThread = BasicTaskThread.spawnInstance();
expansionThread.addTask(new CollectionExpansionTask(manager, collectionContractionTask));
Thread.sleep(8000L);
for (int i = 0; i < 12; i++) {
BasicTaskThread.spawnInstance().addTask(new CollectionExpansionTask(manager, collectionContractionTask));