setTriggerEventType

open fun setTriggerEventType(triggerEventType: Class<out SpringApplicationEvent>)

Sets the type of application event that will trigger writing of the PID file. Defaults to ApplicationPreparedEvent. NOTE: If you use the org.springframework.boot.context.event.ApplicationStartingEvent to trigger the write, you will not be able to specify the PID filename in the Spring Environment.

Parameters

triggerEventType

the trigger event type