I am trying to use executor framework in Google App engine. Bellow is the 
code that I am trying to run.

Thread thread = ThreadManager.createBackgroundThread(new Runnable(){
            public void run(){
                          try{
                                  LOGGER.info( "Checking background thread");   
                         
                                  Thread.sleep(10);
                              }
                          catch (InterruptedException ex){
                                           throw new 
RuntimeException("Exception:", ex);
                              }
                         }
                    });ScheduledThreadPoolExecutor executor = 
(ScheduledThreadPoolExecutor) Executors.newScheduledThreadPool(10, 
ThreadManager.backgroundThreadFactory());
executor.scheduleAtFixedRate(thread, 0, 30, TimeUnit.MINUTES);

But this doesn't start the thread. But if I use *thread.start()* it works 
properly. I have checkedWhitelisted Classes 
<https://cloud.google.com/appengine/docs/java/jrewhitelist> and it does 
provide Executor classes. So where I am doing it wrong ?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2aabf978-76be-4ed0-8490-4359ed47685f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to