org.jgroups.protocols.rules
Interface EventHandler


public interface EventHandler

Interface 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
 java.lang.Object down(Event evt)
          Called when a down event is received
 java.lang.Object up(Event evt)
          Called when an up event is received
 

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

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


Copyright © 1998-2012 Bela Ban / Red Hat. All Rights Reserved.