1 /*2 * JBoss, the OpenSource J2EE webOS3 *4 * Distributable under LGPL license.5 * See terms of license at gnu.org.6 */7 package org.jboss.cache;8 9 import org.jgroups.blocks.MethodCall;10 11 import java.util.List ;12 13 /**14 * Defines an entity able to receive replications15 * @author Bela Ban16 * @version $Id: Replicatable.java,v 1.1.6.1 2005/04/06 21:07:11 starksm Exp $17 */18 public interface Replicatable {19 20 /**21 * Receives and applies a method call as result of replication22 * @param method_call23 * @return24 * @throws Throwable25 */26 Object replicate(MethodCall method_call) throws Throwable ;27 28 /**29 * Receives and applies a number of method calls30 * @param method_calls31 * @throws Throwable32 */33 void replicate(List method_calls) throws Throwable ;34 }35