KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > cache > Replicatable


1 /*
2 * JBoss, the OpenSource J2EE webOS
3 *
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 JavaDoc;
12
13 /**
14  * Defines an entity able to receive replications
15  * @author Bela Ban
16  * @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 replication
22     * @param method_call
23     * @return
24     * @throws Throwable
25     */

26    Object JavaDoc replicate(MethodCall method_call) throws Throwable JavaDoc;
27
28    /**
29     * Receives and applies a number of method calls
30     * @param method_calls
31     * @throws Throwable
32     */

33    void replicate(List JavaDoc method_calls) throws Throwable JavaDoc;
34 }
35
Popular Tags