org.jgroups.protocols

Class MessageProtocolEXAMPLE

public class MessageProtocolEXAMPLE extends MessageProtocol

Method Summary
StringgetName()
Objecthandle(Message req)
Callback.
booleanhandleDownEvent(Event evt)
Callback.
booleanhandleUpEvent(Event evt)
Callback.

Method Detail

getName

public String getName()

handle

public Object handle(Message req)
Callback. Called when a request for this protocol layer is received.

handleDownEvent

public boolean handleDownEvent(Event evt)
Callback. Called by superclass when event may be handled.

Do not use PassDown in this method as the event is passed down by default by the superclass after this method returns !

Returns: boolean Defaults to true. If false, event will not be passed down the stack.

handleUpEvent

public boolean handleUpEvent(Event evt)
Callback. Called by superclass when event may be handled.

Do not use PassUp in this method as the event is passed up by default by the superclass after this method returns !

Returns: boolean Defaults to true. If false, event will not be passed up the stack.

Copyright ? 1998-2005 Bela Ban. All Rights Reserved.