Class AbstractSingleThreadedWorkflowEventSource

    • Constructor Detail

      • AbstractSingleThreadedWorkflowEventSource

        public AbstractSingleThreadedWorkflowEventSource​(String p_strGuid)
        Parameters:
        p_strGuid - The GUID of the event source.
    • Method Detail

      • getStopWaitTimeout

        public long getStopWaitTimeout()
        Get the stop wait timeout.

        Negative values indicate that the stop() method should not wait for the worker thread to stop.

        Returns:
        The stop wait timeout.
      • setStopWaitTimeout

        public void setStopWaitTimeout​(long p_lStopWaitTimeout)
        Set the stop wait timeout.

        Negative values indicate that the stop() method should not wait for the worker thread to stop.

        Parameters:
        p_lStopWaitTimeout - The stop wait timeout.
      • isLogVerbose

        public boolean isLogVerbose()
        Description copied from interface: ILogLevelAware
        This flag determines if verbose logging is turned on or off.
        Specified by:
        isLogVerbose in interface ILogLevelAware
        Returns:
        true if logging is verbose, or false otherwise.
      • setLogVerbose

        public void setLogVerbose​(boolean p_bLogVerbose)
        Description copied from interface: ILogLevelAware
        This flag determines if verbose logging is turned on or off.
        Specified by:
        setLogVerbose in interface ILogLevelAware
        Parameters:
        p_bLogVerbose - true if logging should be verbose, or false otherwise.
      • getDatabaseConnectionFactory

        public de.uplanet.jdbc.IDatabaseConnectionFactory getDatabaseConnectionFactory()
        Get the database connection factory used by this event source.
        Returns:
        The database connection factory used by this event source, or null fo the default.
      • setDatabaseConnectionFactory

        public void setDatabaseConnectionFactory​(de.uplanet.jdbc.IDatabaseConnectionFactory p_connFactory)
        Set the database connection factory used by this event source.
        Parameters:
        p_connFactory - The database connection factory used by this event source.
      • getStartDelay

        public long getStartDelay()
        Get the start delay for this event source, i.e. the number of milliseconds that the worker thread waits until it really starts working by invoking the event source's run() method.
        Returns:
        The start delay for this event source.
      • setStartDelay

        public void setStartDelay​(long p_lStartDelay)
        Set start delay for this event source, i.e. the number of milliseconds that the worker thread waits until it really starts working by invoking the event source's run() method.
        Parameters:
        p_lStartDelay - The start delay for this event source.
      • shouldRun

        public boolean shouldRun()
        Indicates if the worker thread should run or not.
        Specified by:
        shouldRun in interface IRunnableWorkflowObject
        Returns:
        true if the worker thread should run, or false otherwise.