1 |
| package org.jboss.cache; |
2 |
| |
3 |
| import org.jboss.cache.marshall.MethodCall; |
4 |
| import org.jgroups.Address; |
5 |
| |
6 |
| import java.lang.reflect.Method; |
7 |
| import java.util.List; |
8 |
| |
9 |
| public interface RPCManager |
10 |
| { |
11 |
| public List callRemoteMethods(List<Address> recipients, MethodCall methodCall, int mode, boolean excludeSelf, long timeout) throws Exception; |
12 |
| |
13 |
| public boolean isCoordinator(); |
14 |
| |
15 |
| public Address getCoordinator(); |
16 |
| |
17 |
| public List callRemoteMethods(List<Address> recipients, MethodCall methodCall, boolean synchronous, boolean excludeSelf, int timeout) throws Exception; |
18 |
| |
19 |
| public List callRemoteMethods(List<Address> recipients, Method method, Object[] arguments, boolean synchronous, boolean excludeSelf, long timeout) throws Exception; |
20 |
| |
21 |
| public void setCache(CacheSPI c); |
22 |
| |
23 |
| |
24 |
| |
25 |
| |
26 |
| public ReplicationQueue getReplicationQueue(); |
27 |
| } |