Class LeaseMapProxy

java.lang.Object
com.j_spaces.core.LeaseMapProxy
All Implemented Interfaces:
Serializable, Map, LeaseMap

public class LeaseMapProxy extends Object implements LeaseMap, Serializable
See Also:
  • Method Details

    • canContainKey

      public boolean canContainKey(Object obj)
      Description copied from interface: LeaseMap
      Returns true if the given object is a Lease which can be renewed and cancelled in a batch with other leases in the map. Whether or not two Lease objects can be batched is an implementation detail determined by the objects.
      Specified by:
      canContainKey in interface LeaseMap
      Parameters:
      obj - an object that should be a lease
      Returns:
      true if the lease can be renewed and cancelled in a a batch with other leases
      See Also:
    • cancelAll

      public void cancelAll() throws LeaseMapException, RemoteException
      Description copied from interface: LeaseMap
      Cancels all leases in the LeaseMap. If all cancels are successful, returns normally (leaving all leases in the map). Otherwise, removes all leases that failed to cancel from the LeaseMap, and throws LeaseMapException.
      Specified by:
      cancelAll in interface LeaseMap
      Throws:
      LeaseMapException
      RemoteException
    • renewAll

      public void renewAll() throws LeaseMapException, RemoteException
      Description copied from interface: LeaseMap
      Renews all leases in the LeaseMap, using their current values as the renewal durations. If all renewals are successful, returns normally. Otherwise, removes all leases that failed to renew from the LeaseMap, and throws LeaseMapException.
      Specified by:
      renewAll in interface LeaseMap
      Throws:
      LeaseMapException
      RemoteException
    • clear

      public void clear()
      Specified by:
      clear in interface Map
    • containsKey

      public boolean containsKey(Object o)
      Specified by:
      containsKey in interface Map
    • containsValue

      public boolean containsValue(Object o)
      Specified by:
      containsValue in interface Map
    • entrySet

      public Set entrySet()
      Specified by:
      entrySet in interface Map
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Map
      Overrides:
      equals in class Object
    • get

      public Object get(Object key)
      Specified by:
      get in interface Map
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Map
      Overrides:
      hashCode in class Object
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Map
    • keySet

      public Set keySet()
      Specified by:
      keySet in interface Map
    • put

      public Object put(Object key, Object value)
      Specified by:
      put in interface Map
    • putAll

      public void putAll(Map t)
      Specified by:
      putAll in interface Map
    • remove

      public Object remove(Object key)
      Specified by:
      remove in interface Map
    • size

      public int size()
      Specified by:
      size in interface Map
    • values

      public Collection values()
      Specified by:
      values in interface Map