Files
Web4Rail/src/main/java/de/srsoftware/web4rail/actions/ReactivateContact.java
Stephan Richter b951b948e5 updated thread handling:
- threads are no longer pooled (this makes naming threads difficult)
- threads are now named by their causing event, which improves logging

updated calls to thread.sleep: those are now provided by new class Delayed Execution
2021-02-28 13:03:21 +01:00

18 lines
415 B
Java

package de.srsoftware.web4rail.actions;
import de.srsoftware.web4rail.BaseClass;
public class ReactivateContact extends Action{
public ReactivateContact(BaseClass parent) {
super(parent);
}
@Override
public boolean fire(Context context,Object cause) {
if (isNull(context.contact())) return false;
if (isNull(context.route())) return false;
return context.route().reactivate(context.contact());
}
}