Code examples for ScheduledExecutorService

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
50:	this.future = tickThread.scheduleAtFixedRate(new Runnable() { 
Full Snippet Info
7
CodeRank
32:	final RateLimiter rl = new RateLimiter(0, 
-
38:	_executor.scheduleAtFixedRate(new Runnable() { 
Full Snippet Info
7
CodeRank
179:	scheduler.shutdown(); 
-
181:	scheduler.awaitTermination(60, TimeUnit.SECONDS); 
-
317:	scheduler.scheduleWithFixedDelay(reporter, 
-
323:	scheduler.scheduleWithFixedDelay(partitionTracker, 
-
331:	scheduler.execute(deleter); 
-
336:	scheduler.scheduleWithFixedDelay(maxTracker, 
Full Snippet Info
7
CodeRank
94:	this.executor.shutdown(); 
Full Snippet Info
7
CodeRank
67:	this.executor.shutdownNow(); 
Full Snippet Info
7
CodeRank
125:	when(this.executor.scheduleWithFixedDelay(task, delay, period, unit)).thenReturn(expected); 
Full Snippet Info
7
CodeRank
64:	this.executor.shutdown(); 
-
66:	if (!this.executor.awaitTermination(10, TimeUnit.SECONDS)) { 
67:	this.executor.shutdownNow(); 
Full Snippet Info
7
CodeRank
123:	return this.executor.schedule(callable, delay, unit); 
Full Snippet Info
7
CodeRank
126:	_scheduler.shutdownNow(); 
Full Snippet Info
6
CodeRank
51:	this.future = tickThread.scheduleAtFixedRate(new Runnable() { 
Full Snippet Info
6
CodeRank
134:	service.scheduleWithFixedDelay(new AutoSaveTimerTask(), AUTOSAVE_PERIOD, 
Full Snippet Info
6
CodeRank
54:	scheduledExecutorService.scheduleAtFixedRate(task, initialDelay, period, TimeUnit.SECONDS); 
Full Snippet Info
6
CodeRank
77:	_scheduler.shutdown(); 
Full Snippet Info
6
CodeRank
37:	_scheduledExecutorService.shutdown(); 
Full Snippet Info
6
CodeRank
126:	expect(mockExecutor.isShutdown()).andReturn(false).once(); 
-
134:	ConnectionMaxAgeThread testClass2 = new ConnectionMaxAgeThread(mockConnectionPartition, mockExecutor, mockPool, 5000, true); 
Full Snippet Info
6
CodeRank
28:	bean.setProvider(new InMemoryFunctionBlacklistProvider(executor)); 
-
33:	executor.shutdown(); 
Full Snippet Info
6
CodeRank
130:	return executorService.scheduleWithFixedDelay(command, initialDelay, delay, unit); 
Full Snippet Info
6
CodeRank
81:	dispatchJob = scheduledThreadPool.scheduleAtFixedRate(new WrapExceptionRunnable(this), 0, intervalMillis, 
Full Snippet Info
6
CodeRank
126:	expect(mockExecutor.isShutdown()).andReturn(false).once(); 
Full Snippet Info
6
CodeRank
68:	_scheduler.shutdown(); 
Full Snippet Info
6
CodeRank