awaitTerminationPeriod

Set the maximum time the executor is supposed to block on shutdown. When set, the executor blocks on shutdown in order to wait for remaining tasks to complete their execution before the rest of the container continues to shut down. This is particularly useful if your remaining tasks are likely to need access to other resources that are also managed by the container.

Return

a new builder instance

Parameters

awaitTerminationPeriod

the await termination period to set