com.gemstone.org.jgroups.protocols.MessageProtocolEXAMPLE Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gemfire-jgroups Show documentation
Show all versions of gemfire-jgroups Show documentation
SnappyData store based off Pivotal GemFireXD
The newest version!
/** Notice of modification as required by the LGPL
* This file was modified by Gemstone Systems Inc. on
* $Date$
**/
// $Id: MessageProtocolEXAMPLE.java,v 1.2 2004/03/30 06:47:21 belaban Exp $
package com.gemstone.org.jgroups.protocols;
import com.gemstone.org.jgroups.Event;
import com.gemstone.org.jgroups.Message;
import com.gemstone.org.jgroups.stack.MessageProtocol;
/**
*/
public class MessageProtocolEXAMPLE extends MessageProtocol {
@Override // GemStoneAddition
public String getName() {return "MessageProtocolEXAMPLE";}
/**
Callback. Called when a request for this protocol layer is received.
*/
@Override // GemStoneAddition
public Object handle(Message req) {
System.out.println("MessageProtocolEXAMPLE.handle(): this method should be overridden !");
return null;
}
/**
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 !
@return boolean Defaults to true. If false, event will not be passed up the stack.
*/
@Override // GemStoneAddition
public boolean handleUpEvent(Event evt) {return true;}
/**
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 !
@return boolean Defaults to true. If false, event will not be passed down the stack.
*/
@Override // GemStoneAddition
public boolean handleDownEvent(Event evt) {return true;}
}