Package org.keycloak.executors
Class DefaultExecutorsProviderFactory
java.lang.Object
org.keycloak.executors.DefaultExecutorsProviderFactory
- All Implemented Interfaces:
ExecutorsProviderFactory
,ProviderFactory<ExecutorsProvider>
- Author:
- Marek Posolda
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
This is called when the server shuts down.create
(KeycloakSession session) protected ExecutorService
createPoolEmbedded
(String taskType, KeycloakSession session) protected ThreadFactory
createThreadFactory
(String taskType, KeycloakSession session) protected void
protected ExecutorService
getExecutor
(String taskType, KeycloakSession session) 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
dependsOn, getConfigMetadata, order
-
Field Details
-
logger
protected static final org.jboss.logging.Logger logger
-
-
Constructor Details
-
DefaultExecutorsProviderFactory
public DefaultExecutorsProviderFactory()
-
-
Method Details
-
create
- Specified by:
create
in interfaceProviderFactory<ExecutorsProvider>
-
init
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
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
- Specified by:
getId
in interfaceProviderFactory<ExecutorsProvider>
-
getExecutor
-
retrievePool
-
detectManaged
protected void detectManaged() -
getPoolManaged
-
createPoolEmbedded
-
createThreadFactory
-