public class DefaultExecutorsProviderFactory extends Object implements ExecutorsProviderFactory
Modifier and Type | Field and Description |
---|---|
protected static org.jboss.logging.Logger |
logger |
Constructor and Description |
---|
DefaultExecutorsProviderFactory() |
Modifier and Type | Method and Description |
---|---|
void |
close()
This is called when the server shuts down.
|
ExecutorsProvider |
create(KeycloakSession session) |
protected ExecutorService |
createPoolEmbedded(String taskType,
KeycloakSession session) |
protected ThreadFactory |
createThreadFactory(String taskType,
KeycloakSession session) |
protected void |
detectManaged() |
protected ExecutorService |
getExecutor(String taskType,
KeycloakSession session) |
String |
getId() |
protected ExecutorService |
getPoolManaged(String taskType,
KeycloakSession session) |
void |
init(Config.Scope config)
Only called once when the factory is first created.
|
void |
postInit(KeycloakSessionFactory factory)
Called after all provider factories have been initialized
|
protected ExecutorService |
retrievePool(String taskType,
KeycloakSession session) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
order
public ExecutorsProvider create(KeycloakSession session)
create
in interface ProviderFactory<ExecutorsProvider>
public void init(Config.Scope config)
ProviderFactory
init
in interface ProviderFactory<ExecutorsProvider>
public void postInit(KeycloakSessionFactory factory)
ProviderFactory
postInit
in interface ProviderFactory<ExecutorsProvider>
public void close()
ProviderFactory
close
in interface ProviderFactory<ExecutorsProvider>
public String getId()
getId
in interface ProviderFactory<ExecutorsProvider>
protected ExecutorService getExecutor(String taskType, KeycloakSession session)
protected ExecutorService retrievePool(String taskType, KeycloakSession session)
protected void detectManaged()
protected ExecutorService getPoolManaged(String taskType, KeycloakSession session)
protected ExecutorService createPoolEmbedded(String taskType, KeycloakSession session)
protected ThreadFactory createThreadFactory(String taskType, KeycloakSession session)
Copyright © 2021 JBoss by Red Hat. All rights reserved.