
net.jmatrix.async.NotifyingThread Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmutils Show documentation
Show all versions of jmutils Show documentation
PerfTrack and Async utilities.
package net.jmatrix.async;
import net.jmatrix.utils.ClassLogFactory;
import org.slf4j.Logger;
public class NotifyingThread extends Thread
{
static final Logger log=ClassLogFactory.getLog();
protected Notifier notifier;
public NotifyingThread(Runnable r)
{
super(r);
}
public Notifier getNotifier()
{
return notifier;
}
public void setNotifier(Notifier notifier)
{
this.notifier = notifier;
}
public void notifyTargets()
{
if (notifier != null)
{
notifier.notifyTargets();
}
else
{
log.warn("Notifier is null for NotifyingThread: "+this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy