Module org.jooq

Class StopWatchListener

  • All Implemented Interfaces:
    Serializable, EventListener, ExecuteListener

    public class StopWatchListener
    extends Object
    implements ExecuteListener
    A default ExecuteListener that just logs events to java.util.logging, log4j, or slf4j using the JooqLogger.

    This is a stateful listener, meaning it has a reference to a StopWatch that is shared among all query executions that use this same StopWatchListener. If the instance is shared among query executions, the listener measures the time passed since the first initialisation. In order to let it measure the time for each individual query execution afresh, use an ExecuteListenerProvider to create new instances every time:

    Lukas Eder
    See Also:
    Serialized Form