Package org.jgroups.protocols.rules
Interface EventHandler
-
public interface EventHandlerInterface which defines 2 callbacks: up() and down(). An EventHandler can be installed in SUPERVISOR by a rule which requires callbacks when an event is passed up or down the stack.- Since:
- 3.3
- Author:
- Bela Ban
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectdown(Event evt)Called when a down event is receivedjava.lang.Objectdown(Message msg)java.lang.Objectup(Event evt)Called when an up event is receivedjava.lang.Objectup(Message msg)
-
-
-
Method Detail
-
up
java.lang.Object up(Event evt) throws java.lang.Throwable
Called when an up event is received- Parameters:
evt- The event- Returns:
- Ignored
- Throws:
java.lang.Throwable
-
up
java.lang.Object up(Message msg) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
down
java.lang.Object down(Event evt) throws java.lang.Throwable
Called when a down event is received- Parameters:
evt- The event- Returns:
- Ignored
- Throws:
java.lang.Throwable
-
down
java.lang.Object down(Message msg) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-