类 BackgroundPreinitializer
java.lang.Object
org.springframework.boot.autoconfigure.BackgroundPreinitializer
- 所有已实现的接口:
EventListener
,ApplicationListener<SpringApplicationEvent>
,Ordered
public class BackgroundPreinitializer
extends Object
implements ApplicationListener<SpringApplicationEvent>, Ordered
ApplicationListener
to trigger early initialization in a background thread of
time-consuming tasks.
Set the IGNORE_BACKGROUNDPREINITIALIZER_PROPERTY_NAME
system property to
true
to disable this mechanism and let such initialization happen in the
foreground.
- 从以下版本开始:
- 1.3.0
- 作者:
- Phillip Webb, Andy Wilkinson, Artsiom Yudovin, Sebastien Deleuze
-
字段概要
字段修饰符和类型字段说明static final String
System property that instructs Spring Boot how to run pre initialization.从接口继承的字段 org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
构造器概要
构造器 -
方法概要
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 org.springframework.context.ApplicationListener
supportsAsyncExecution
-
字段详细资料
-
IGNORE_BACKGROUNDPREINITIALIZER_PROPERTY_NAME
System property that instructs Spring Boot how to run pre initialization. When the property is set totrue
, no pre-initialization happens and each item is initialized in the foreground as it needs to. When the property isfalse
(default), pre initialization runs in a separate thread in the background.- 从以下版本开始:
- 2.1.0
- 另请参阅:
-
-
构造器详细资料
-
BackgroundPreinitializer
public BackgroundPreinitializer()
-
-
方法详细资料
-
getOrder
public int getOrder() -
onApplicationEvent
-