CachePeer listener peers for a Cache.
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Providers may be doing all sorts of exotic things and need to be able to clean up on dispose. |
| public String | Returns: the well-known scheme name, which is determined by the replication provider author.The replication scheme. |
| public long | |
| public void | |
| public List | Returns: a list ofCachePeer peers for the given cache, excluding the local peer.
|
| public void | registerPeer(String
Identifies a node in this replication scheme (ex: RMI URL) nodeId)Register a new peer. |
| public void | unregisterPeer(String
Identifies a node in this replication scheme (ex: RMI URL) nodeId)Unregisters a peer. |
| dispose | back to summary |
|---|---|
| public void dispose() throws CacheException Providers may be doing all sorts of exotic things and need to be able to clean up on dispose. | |
| getScheme | back to summary |
|---|---|
| public String getScheme() The replication scheme. Each peer provider has a scheme name, which can be used to specify
the scheme for replication and bootstrap purposes. Each
| |
| getTimeForClusterToForm | back to summary |
|---|---|
| public long getTimeForClusterToForm() Time for a cluster to form. This varies considerably, depending on the implementation.
| |
| init | back to summary |
|---|---|
| public void init() Notifies providers to initialise themselves. | |
| listRemoteCachePeers | back to summary |
|---|---|
| public List | |
| registerPeer | back to summary |
|---|---|
| public void registerPeer(String nodeId) Register a new peer.
| |
| unregisterPeer | back to summary |
|---|---|
| public void unregisterPeer(String nodeId) Unregisters a peer.
| |