View Javadoc
1   package net.avcompris.commons3.triggered;
2   
3   import javax.annotation.Nullable;
4   
5   import net.avcompris.commons3.api.User;
6   
7   public interface ErrorTriggered {
8   
9   	String getName();
10  
11  	/**
12  	 * If null, the thread is stopped.
13  	 */
14  	@Nullable
15  	User getThreadUser();
16  
17  	/**
18  	 * If null, stop the thread.
19  	 */
20  	void setThreadUser(@Nullable String correlationId, @Nullable User user);
21  
22  	void register(ErrorTriggeredAction action);
23  }