Module io.ebean.api

Interface BackgroundExecutorWrapper

All Known Implementing Classes:
MdcBackgroundExecutorWrapper

public interface BackgroundExecutorWrapper
BackgroundExecutorWrapper that can be used to wrap tasks that are sent to background (i.e. another thread). It should copy all necessary thread-local variables. See MdcBackgroundExecutorWrapper for implementation details. Note: only tasks that are executed immediately (submit, execute) are wrapped. Periodic or scheduled tasks are not wrapped, as these may keep copied variables in memory either forever or until the scheduled task is finished. The caller is responsible to handle these cases.
Author:
Roland Praml, FOCONIS AG