Subversion Repositories SmartDukaan

Rev

Rev 35956 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35956 Rev 36999
Line 34... Line 34...
34
        executor.setQueueCapacity(200);
34
        executor.setQueueCapacity(200);
35
        executor.setThreadNamePrefix("mail-outbox-");
35
        executor.setThreadNamePrefix("mail-outbox-");
36
        executor.initialize();
36
        executor.initialize();
37
        return executor;
37
        return executor;
38
    }
38
    }
-
 
39
 
-
 
40
    @Bean(name = "priceHikeExecutor")
-
 
41
    public Executor priceHikeExecutor() {
-
 
42
        ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
-
 
43
        executor.setCorePoolSize(1);
-
 
44
        executor.setMaxPoolSize(3);
-
 
45
        executor.setQueueCapacity(100);
-
 
46
        executor.setThreadNamePrefix("price-hike-");
-
 
47
        executor.initialize();
-
 
48
        return executor;
-
 
49
    }
39
}
50
}