From c93de97214935294c8633cdff4260d9941d748c1 Mon Sep 17 00:00:00 2001 From: romangraef Date: Sun, 4 Feb 2018 19:42:23 +0100 Subject: Made it work. Also more modularity. --- src/main/java/de/romjaki/logger/LogEvent.java | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/main/java/de/romjaki/logger/LogEvent.java (limited to 'src/main/java/de/romjaki/logger/LogEvent.java') diff --git a/src/main/java/de/romjaki/logger/LogEvent.java b/src/main/java/de/romjaki/logger/LogEvent.java new file mode 100644 index 0000000..e62742c --- /dev/null +++ b/src/main/java/de/romjaki/logger/LogEvent.java @@ -0,0 +1,26 @@ +package de.romjaki.logger; + +/** + * Created by RGR on 17.08.2017. + */ +public abstract class LogEvent { + + boolean interrupted = false; + Class actor; + + public LogEvent(Class actor) { + this.actor = actor; + } + + public void interrupt() { + interrupted = true; + } + + public Class getActor() { + return actor; + } + + public boolean isInterrupted() { + return interrupted; + } +} -- cgit