public class JGroupsCachePeer
extends java.lang.Object
implements com.fr.third.net.sf.ehcache.distribution.CachePeer
发送集群消息
Handles CachePeer
functions around a JGroups Channel
and a
CacheManager
构造器和说明 |
---|
JGroupsCachePeer(Channel channel,
java.lang.String clusterName)
Create a new
CachePeer |
限定符和类型 | 方法和说明 |
---|---|
void |
dispose()
Shutdown the cache peer
|
java.util.List<?> |
getElements(java.util.List keys) |
java.util.List<Address> |
getGroupMembership() |
java.lang.String |
getGuid() |
java.util.List<?> |
getKeys() |
Address |
getLocalAddress() |
java.lang.String |
getName() |
java.util.List<Address> |
getOtherGroupMembers() |
com.fr.third.net.sf.ehcache.Element |
getQuiet(java.io.Serializable key) |
java.lang.String |
getUrl() |
java.lang.String |
getUrlBase() |
void |
put(com.fr.third.net.sf.ehcache.Element element) |
boolean |
remove(java.io.Serializable key) |
void |
removeAll() |
void |
send(Address dest,
java.util.List<JGroupEventMessage> eventMessages)
Sends a list of
JGroupEventMessage s to the specified address, if no address is set the messages
are sent to the entire group. |
void |
send(java.util.List eventMessages) |
public JGroupsCachePeer(Channel channel, java.lang.String clusterName)
CachePeer
public void send(java.util.List eventMessages) throws java.rmi.RemoteException
send
在接口中 com.fr.third.net.sf.ehcache.distribution.CachePeer
java.rmi.RemoteException
public java.util.List<Address> getGroupMembership()
public java.util.List<Address> getOtherGroupMembers()
public Address getLocalAddress()
public void dispose()
public void send(Address dest, java.util.List<JGroupEventMessage> eventMessages)
JGroupEventMessage
s to the specified address, if no address is set the messages
are sent to the entire group.public java.util.List<?> getElements(java.util.List keys) throws java.rmi.RemoteException
getElements
在接口中 com.fr.third.net.sf.ehcache.distribution.CachePeer
java.rmi.RemoteException
public java.lang.String getGuid() throws java.rmi.RemoteException
getGuid
在接口中 com.fr.third.net.sf.ehcache.distribution.CachePeer
java.rmi.RemoteException
public java.util.List<?> getKeys() throws java.rmi.RemoteException
getKeys
在接口中 com.fr.third.net.sf.ehcache.distribution.CachePeer
java.rmi.RemoteException
public java.lang.String getName() throws java.rmi.RemoteException
getName
在接口中 com.fr.third.net.sf.ehcache.distribution.CachePeer
java.rmi.RemoteException
public com.fr.third.net.sf.ehcache.Element getQuiet(java.io.Serializable key) throws java.rmi.RemoteException
getQuiet
在接口中 com.fr.third.net.sf.ehcache.distribution.CachePeer
java.rmi.RemoteException
public java.lang.String getUrl() throws java.rmi.RemoteException
getUrl
在接口中 com.fr.third.net.sf.ehcache.distribution.CachePeer
java.rmi.RemoteException
public java.lang.String getUrlBase() throws java.rmi.RemoteException
getUrlBase
在接口中 com.fr.third.net.sf.ehcache.distribution.CachePeer
java.rmi.RemoteException
public void put(com.fr.third.net.sf.ehcache.Element element) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, java.rmi.RemoteException
put
在接口中 com.fr.third.net.sf.ehcache.distribution.CachePeer
java.lang.IllegalArgumentException
java.lang.IllegalStateException
java.rmi.RemoteException
public boolean remove(java.io.Serializable key) throws java.lang.IllegalStateException, java.rmi.RemoteException
remove
在接口中 com.fr.third.net.sf.ehcache.distribution.CachePeer
java.lang.IllegalStateException
java.rmi.RemoteException
public void removeAll() throws java.rmi.RemoteException, java.lang.IllegalStateException
removeAll
在接口中 com.fr.third.net.sf.ehcache.distribution.CachePeer
java.rmi.RemoteException
java.lang.IllegalStateException