It is acknowledged that not all implementations will use Remote. Remote is just a marker interface like Serializable, so nothing specific is required.
Non-RMI implementations should be able to use this interface. Implementations not using RMI should
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: a list of Elements. If an element was not found or null, it will not be in the list.a list of serializable values which represent keys keys)Gets a list of elements from the cache, for a list of keys, without updating Element statistics. |
| public String | Returns: a String representation of the GUIDGets the globally unique id for the underlying |
| public List | |
| public String | |
| public Element | Returns: the element, or null, if it does not exist.a serializable value key)Gets an element from the cache, without updating Element statistics. |
| public String | |
| public String | |
| public void | |
| public boolean | Returns: true if the element was removed, false if it was not found in the cacheRemoves an |
| public void | |
| public void | send(List<E>
a list of type eventMessages)EventMessageSend the cache peer with an ordered list of |
| getElements | back to summary |
|---|---|
| public List Gets a list of elements from the cache, for a list of keys, without updating Element statistics. Time to idle lifetimes are therefore not affected. Cache statistics are still updated. | |
| getGuid | back to summary |
|---|---|
| public String getGuid() throws RemoteException Gets the globally unique id for the underlying
| |
| getKeys | back to summary |
|---|---|
| public List Returns a list of all elements in the cache, whether or not they are expired. The returned keys are unique and can be considered a set. The List returned is not live. It is a copy. The time taken is O(n). On a single cpu 1.8Ghz P4, approximately 8ms is required for each 1000 entries. | |
| getName | back to summary |
|---|---|
| public String getName() throws RemoteException Gets the cache name. | |
| getQuiet | back to summary |
|---|---|
| public Element getQuiet(Serializable key) throws RemoteException Gets an element from the cache, without updating Element statistics. Cache statistics are still updated.
| |
| getUrl | back to summary |
|---|---|
| public String getUrl() throws RemoteException The URL for the remote replicator to connect. The value will only have meaning for a specific implementation of replicator and remote peer. This method is not meant to be used remotely. The replicator already needs to know this. It has to throw RemoteException to comply with RMI requirements
| |
| getUrlBase | back to summary |
|---|---|
| public String getUrlBase() throws RemoteException The URL base for the remote replicator to connect. The value will have meaning only to a specific implementation of replicator and remote peer. | |
| put | back to summary |
|---|---|
| public void put(Element element) throws IllegalArgumentException, IllegalStateException, RemoteException Put an element in the cache. Resets the access statistics on the element, which would be the case if it has previously been gotten from a cache, and is now being put back.
| |
| remove | back to summary |
|---|---|
| public boolean remove(Serializable key) throws IllegalStateException, RemoteException Removes an
| |
| removeAll | back to summary |
|---|---|
| public void removeAll() throws RemoteException, IllegalStateException Removes all cached items.
| |
| send | back to summary |
|---|---|
| public void send(List<E> eventMessages) throws RemoteException Send the cache peer with an ordered list of This enables multiple messages to be delivered in one network invocation.
| |