Package org.apache.camel.util

Examples of org.apache.camel.util.StopWatch.restart()


    @Override
    public void beforeTestMethod(TestContext testContext) throws Exception {
        StopWatch stopWatch = new StopWatch();
        threadStopWatch.set(stopWatch);
       
        stopWatch.restart();
    }

    @Override
    public void afterTestMethod(TestContext testContext) throws Exception {
        long time = threadStopWatch.get().stop();
View Full Code Here


    @Override
    public void beforeTestMethod(TestContext testContext) throws Exception {
        StopWatch stopWatch = new StopWatch();
        threadStopWatch.set(stopWatch);
       
        stopWatch.restart();
    }

    @Override
    public void afterTestMethod(TestContext testContext) throws Exception {
        long time = threadStopWatch.get().stop();
View Full Code Here

        String[] endpoints = new String[]{"direct:splitSynchronizedAggregation", "direct:splitUnsynchronizedAggregation"};
        List<Future<File>> futures = new ArrayList<Future<File>>();
        StopWatch stopWatch = new StopWatch(false);

        for (int endpointIndex = 0; endpointIndex < endpoints.length; endpointIndex++) {
            stopWatch.restart();
            for (int requestIndex = 0; requestIndex < numberOfRequests; requestIndex++) {
                futures.add(template.asyncRequestBody(
                        endpoints[endpointIndex], null, File.class));
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.