Package org.keycloak.executors
Class DefaultExecutorsProviderFactory
- java.lang.Object
-
- org.keycloak.executors.DefaultExecutorsProviderFactory
-
- All Implemented Interfaces:
ExecutorsProviderFactory
,ProviderFactory<ExecutorsProvider>
public class DefaultExecutorsProviderFactory extends Object implements ExecutorsProviderFactory
- Author:
- Marek Posolda
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.jboss.logging.Logger
logger
-
Constructor Summary
Constructors Constructor Description DefaultExecutorsProviderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 initializedprotected ExecutorService
retrievePool(String taskType, KeycloakSession session)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
-
-
-
Method Detail
-
create
public ExecutorsProvider create(KeycloakSession session)
- Specified by:
create
in interfaceProviderFactory<ExecutorsProvider>
-
init
public void init(Config.Scope config)
Description copied from interface:ProviderFactory
Only called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
init
in interfaceProviderFactory<ExecutorsProvider>
-
postInit
public void postInit(KeycloakSessionFactory factory)
Description copied from interface:ProviderFactory
Called after all provider factories have been initialized- Specified by:
postInit
in interfaceProviderFactory<ExecutorsProvider>
-
close
public void close()
Description copied from interface:ProviderFactory
This is called when the server shuts down.- Specified by:
close
in interfaceProviderFactory<ExecutorsProvider>
-
getId
public String getId()
- Specified by:
getId
in interfaceProviderFactory<ExecutorsProvider>
-
getExecutor
protected ExecutorService getExecutor(String taskType, KeycloakSession session)
-
retrievePool
protected ExecutorService retrievePool(String taskType, KeycloakSession session)
-
detectManaged
protected void detectManaged()
-
getPoolManaged
protected ExecutorService getPoolManaged(String taskType, KeycloakSession session)
-
createPoolEmbedded
protected ExecutorService createPoolEmbedded(String taskType, KeycloakSession session)
-
createThreadFactory
protected ThreadFactory createThreadFactory(String taskType, KeycloakSession session)
-
-