~ubuntu-branches/ubuntu/trusty/ehcache/trusty

« back to all changes in this revision

Viewing changes to src/main/java/net/sf/ehcache/constructs/nonstop/CacheManagerExecutorServiceFactory.java

  • Committer: Package Import Robot
  • Author(s): Emmanuel Bourg
  • Date: 2013-05-06 14:53:07 UTC
  • mfrom: (1.1.7) (2.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130506145307-v5bhw5yu70re00l3
Tags: 2.6.7-1
* Team upload.
* New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 *  Copyright 2003-2010 Terracotta, Inc.
 
2
 *  Copyright Terracotta, Inc.
3
3
 *
4
4
 *  Licensed under the Apache License, Version 2.0 (the "License");
5
5
 *  you may not use this file except in compliance with the License.
68
68
                    private final AtomicInteger count = new AtomicInteger();
69
69
 
70
70
                    public Thread newThread(Runnable runnable) {
71
 
                        Thread thread = new Thread(runnable, "NonStopCache [" + cacheManagerName + "] " + EXECUTOR_THREAD_NAME_PREFIX + "-"
72
 
                                + count.incrementAndGet() + " for '" + Thread.currentThread().getName() + "'");
 
71
                        Thread thread = new NonstopThread(runnable, "NonStopCache [" + cacheManagerName + "] "
 
72
                                + EXECUTOR_THREAD_NAME_PREFIX + "-" + count.incrementAndGet() + " for '" + Thread.currentThread().getName()
 
73
                                + "'");
73
74
                        thread.setDaemon(true);
74
75
                        return thread;
75
76
                    }