Best code examples for Java 8 ScheduledExecutorService class (java.util.concurrent.ScheduledExecutorService)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 ScheduledExecutorService class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Java 8 ScheduledExecutorService examples from Open Source projects
This code example shows how to use the following methods: scheduleAtFixedRate
50:	this.future = tickThread.scheduleAtFixedRate(new Runnable() { 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: scheduleAtFixedRate
32:	final RateLimiter rl = new RateLimiter(0, 
-
38:	_executor.scheduleAtFixedRate(new Runnable() { 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: shutdown
94:	this.executor.shutdown(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: shutdownNow
67:	this.executor.shutdownNow(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: scheduleWithFixedDelay
125:	when(this.executor.scheduleWithFixedDelay(task, delay, period, unit)).thenReturn(expected); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: schedule
123:	return this.executor.schedule(callable, delay, unit); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: shutdownNow
126:	_scheduler.shutdownNow(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: scheduleAtFixedRate
51:	this.future = tickThread.scheduleAtFixedRate(new Runnable() { 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: scheduleWithFixedDelay
134:	service.scheduleWithFixedDelay(new AutoSaveTimerTask(), AUTOSAVE_PERIOD, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: awaitTermination, shutdown, shutdownNow
64:	this.executor.shutdown(); 
-
66:	if (!this.executor.awaitTermination(10, TimeUnit.SECONDS)) { 
67:	this.executor.shutdownNow(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: scheduleAtFixedRate
54:	scheduledExecutorService.scheduleAtFixedRate(task, initialDelay, period, TimeUnit.SECONDS); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: shutdown
77:	_scheduler.shutdown(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: execute, awaitTermination, shutdown, scheduleWithFixedDelay
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
This code example shows how to use the following methods: scheduleWithFixedDelay
130:	return executorService.scheduleWithFixedDelay(command, initialDelay, delay, unit); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: scheduleAtFixedRate
81:	dispatchJob = scheduledThreadPool.scheduleAtFixedRate(new WrapExceptionRunnable(this), 0, intervalMillis, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: isShutdown
126:	expect(mockExecutor.isShutdown()).andReturn(false).once(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: shutdown
68:	_scheduler.shutdown(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: schedule
56:	final Future<?> cancellationFuture = 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: shutdown
60:	schedulePool.shutdown(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: scheduleWithFixedDelay
52:	service.scheduleWithFixedDelay(task, 0, delay, timeUnit); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: scheduleAtFixedRate
77:	scheduler.scheduleAtFixedRate(memoryLoogerRunnable, rateInMillis, rateInMillis, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: isShutdown
126:	expect(mockExecutor.isShutdown()).andReturn(false).once(); 
-
134:	ConnectionMaxAgeThread testClass2 = new ConnectionMaxAgeThread(mockConnectionPartition, mockExecutor, mockPool, 5000, true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: shutdown
28:	bean.setProvider(new InMemoryFunctionBlacklistProvider(executor)); 
-
33:	executor.shutdown(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: isShutdown
293:	expect(mockExecutor.isShutdown()).andReturn(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: scheduleWithFixedDelay
62:	scheduler.scheduleWithFixedDelay(new DigestPrintOut(), 10, 20, TimeUnit.SECONDS); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: schedule
43:	_scheduledExecutorService.schedule( 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: shutdown
28:	final InMemoryFunctionBlacklistProvider provider = new InMemoryFunctionBlacklistProvider(executor); 
-
37:	executor.shutdown(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: schedule
104:	prefetchFutures.put(path, prefetchExecutorPool.schedule(runnable, delay, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: scheduleAtFixedRate
51:	scheduler.scheduleAtFixedRate(new StatisticHelper(), 1, 1, TimeUnit.HOURS); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: scheduleAtFixedRate
48:	scheduledExecutor.scheduleAtFixedRate(storeWorker, 1, 1, TimeUnit.SECONDS); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: scheduleWithFixedDelay
77:	evictionTask = executor.scheduleWithFixedDelay(new ScheduledTask(), 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: awaitTermination, shutdown
36:	mExecutor.shutdown(); 
37:	if (!mExecutor.awaitTermination(10, TimeUnit.SECONDS)) { 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: shutdownNow
46:	if (executor != null) executor.shutdownNow(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: shutdown
60:	scheduler.shutdown(); 
Full Snippet Info
5
CodeRank
Related Java 8 ScheduledExecutorService Questions & Answers:
See Code Examples for Java 8 ScheduledExecutorService Methods: