Package com.github.overengineer.scope.testutil.thread

Examples of com.github.overengineer.scope.testutil.thread.TaskThread


            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));
View Full Code Here

TOP

Related Classes of com.github.overengineer.scope.testutil.thread.TaskThread

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.