class EL_LOGGED_REGULAR_INTERVAL_EVENT_PRODUCER

(source code)

Client examples: COMPILED_CLASSES

Description

Logged regular interval event producer

note
	description: "Logged regular interval event producer"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2022 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2022-11-15 19:56:06 GMT (Tuesday 15th November 2022)"
	revision: "7"

class
	EL_LOGGED_REGULAR_INTERVAL_EVENT_PRODUCER

inherit
	EL_REGULAR_INTERVAL_EVENT_PRODUCER
		rename
			on_event_posted as log_event
		undefine
			log_event
		redefine
			event_queue, on_start, on_resumption
		end

	EL_LOGGED_EVENT_COUNTER

	EL_MODULE_LOG

	EL_MODULE_LOG_MANAGER

create
	make_with_interval, make_with_interval_and_upper_count

feature {NONE} -- Event handling

	on_resumption
		do
			Precursor
			reset
		end

feature {NONE} -- Implementation

	on_start
		do
			Log_manager.add_thread (Current)
		end

feature {NONE} -- Internal attributes

	event_queue: EL_LOGGED_THREAD_PRODUCT_QUEUE [EL_REGULAR_INTERVAL_EVENT]

feature {NONE} -- Constants

	Count_label: ZSTRING
		once
			Result := "Timer events"
		end

end