public class RmiSharedMapImpl extends java.rmi.server.UnicastRemoteObject implements RmiSharedMap
| Constructor and Description |
|---|
RmiSharedMapImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
bind(java.lang.String name,
RmiSharedMap value) |
void |
clear()
Implements
RmiSharedMap.clear(). |
boolean |
containsKey(java.lang.Object key)
Implements
RmiSharedMap.containsKey(Object). |
boolean |
containsValue(java.lang.Object value)
Implements
RmiSharedMap.containsValue(Object). |
java.lang.Object |
get(java.lang.Object key)
Implements
RmiSharedMap.get(Object). |
java.util.Map |
getMap()
Implements
RmiSharedMap.getMap(). |
java.lang.Object |
getRandomKey()
While the map is locked, get the set of keys and select a random
element.
|
boolean |
isEmpty()
Implements
RmiSharedMap.isEmpty(). |
protected static RmiSharedMap |
lookup(java.lang.String name) |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Implements
RmiSharedMap.put(Object, Object). |
void |
putAll(java.util.Map t)
Implements
RmiSharedMap.putAll(Map). |
long |
putIfLarger(java.lang.Object key,
long value)
Implements
RmiSharedMap.putIfLarger(Object, long). |
long |
putIfSmaller(java.lang.Object key,
long value)
Implements
RmiSharedMap.putIfSmaller(Object, long). |
java.lang.Object |
remove(java.lang.Object key)
Implements
RmiSharedMap.remove(Object). |
boolean |
replace(java.lang.Object key,
java.lang.Object expectedValue,
java.lang.Object newValue)
|
int |
size()
Implements
RmiSharedMap.size(). |
clone, exportObject, exportObject, exportObject, unexportObjectpublic RmiSharedMapImpl()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionprotected static void bind(java.lang.String name,
RmiSharedMap value)
protected static RmiSharedMap lookup(java.lang.String name) throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic int size()
throws java.rmi.RemoteException
RmiSharedMap.size().size in interface RmiSharedMapjava.rmi.RemoteExceptionpublic boolean isEmpty()
throws java.rmi.RemoteException
RmiSharedMap.isEmpty().isEmpty in interface RmiSharedMapjava.rmi.RemoteExceptionpublic boolean containsKey(java.lang.Object key)
throws java.rmi.RemoteException
RmiSharedMap.containsKey(Object).containsKey in interface RmiSharedMapjava.rmi.RemoteExceptionpublic boolean containsValue(java.lang.Object value)
throws java.rmi.RemoteException
RmiSharedMap.containsValue(Object).containsValue in interface RmiSharedMapjava.rmi.RemoteExceptionpublic java.lang.Object get(java.lang.Object key)
throws java.rmi.RemoteException
RmiSharedMap.get(Object).get in interface RmiSharedMapjava.rmi.RemoteExceptionpublic java.lang.Object put(java.lang.Object key,
java.lang.Object value)
throws java.rmi.RemoteException
RmiSharedMap.put(Object, Object).put in interface RmiSharedMapjava.rmi.RemoteExceptionpublic long putIfLarger(java.lang.Object key,
long value)
throws java.rmi.RemoteException
RmiSharedMap.putIfLarger(Object, long).putIfLarger in interface RmiSharedMapjava.rmi.RemoteExceptionpublic long putIfSmaller(java.lang.Object key,
long value)
throws java.rmi.RemoteException
RmiSharedMap.putIfSmaller(Object, long).putIfSmaller in interface RmiSharedMapjava.rmi.RemoteExceptionpublic java.lang.Object remove(java.lang.Object key)
throws java.rmi.RemoteException
RmiSharedMap.remove(Object).remove in interface RmiSharedMapjava.rmi.RemoteExceptionpublic void putAll(java.util.Map t)
throws java.rmi.RemoteException
RmiSharedMap.putAll(Map).putAll in interface RmiSharedMapjava.rmi.RemoteExceptionpublic void clear()
throws java.rmi.RemoteException
RmiSharedMap.clear().clear in interface RmiSharedMapjava.rmi.RemoteExceptionpublic java.util.Map getMap()
throws java.rmi.RemoteException
RmiSharedMap.getMap().getMap in interface RmiSharedMapjava.rmi.RemoteExceptionpublic java.lang.Object getRandomKey()
throws java.rmi.RemoteException
getRandomKey in interface RmiSharedMapjava.rmi.RemoteExceptionpublic boolean replace(java.lang.Object key,
java.lang.Object expectedValue,
java.lang.Object newValue)
throws java.rmi.RemoteException
RmiSharedMapreplace in interface RmiSharedMapjava.rmi.RemoteExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.