Class FixedExecutorProvider (2.9.0)

  public 
  
 final 
  
 class 
 FixedExecutorProvider 
  
 implements 
  
 ExecutorProvider 
 

FixedExecutorProvider is an ExecutorProvider which always returns the same executor.

Inheritance

java.lang.Object > FixedExecutorProvider

Implements

ExecutorProvider

Methods

create(ScheduledExecutorService executor)

  public 
  
 static 
  
 FixedExecutorProvider 
  
 create 
 ( 
 ScheduledExecutorService 
  
 executor 
 ) 
 

Creates a FixedExecutorProvider.

Parameter
Name Description
executor ScheduledExecutorService
Returns
Type Description
FixedExecutorProvider

getExecutor()

  public 
  
 ScheduledExecutorService 
  
 getExecutor 
 () 
 

Gets the executor to use.

Returns
Type Description
ScheduledExecutorService

shouldAutoClose()

  public 
  
 boolean 
  
 shouldAutoClose 
 () 
 

Indicates whether the executor should be closed by the containing client class.

Returns
Type Description
boolean
Design a Mobile Site
View Site in Mobile | Classic
Share by: