com.sun.jini.fiddler
Class FiddlerLeaseMap.ConstrainableFiddlerLeaseMap
java.lang.Object
com.sun.jini.lease.AbstractLeaseMap
com.sun.jini.fiddler.FiddlerLeaseMap
com.sun.jini.fiddler.FiddlerLeaseMap.ConstrainableFiddlerLeaseMap
- All Implemented Interfaces:
- Map, LeaseMap
- Enclosing class:
- FiddlerLeaseMap
static final class FiddlerLeaseMap.ConstrainableFiddlerLeaseMap
- extends FiddlerLeaseMap
The constrainable version of the class FiddlerLeaseMap
.
- Since:
- 2.0
Method Summary |
boolean |
canContainKey(Object key)
Examines the input parameter to determine if that parameter will
be accepted or rejected by this map as a "legal" key value. |
private static Fiddler |
constrainServer(Fiddler server,
MethodConstraints constraints)
Returns a copy of the given server proxy having the client method
constraints that result after the specified method mapping is
applied to the given client method constraints. |
Methods inherited from class com.sun.jini.lease.AbstractLeaseMap |
checkKey, checkValue, clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
renewMethod
private static final Method renewMethod
cancelMethod
private static final Method cancelMethod
methodMapArray
private static final Method[] methodMapArray
canContainKeyMethodMapArray
private static final Method[] canContainKeyMethodMapArray
- In order to determine if a given lease will be accepted by this
map as a "legal" key value, the method
canContainKey
must verify that the corresponding methods of the initial
lease used to create this map and the lease input to
canContainKey
have equivalent constraints. The
array defined here contains the set of methods whose constraints
will be compared in canContainKey
.
methodConstraints
private MethodConstraints methodConstraints
- Client constraints placed on this proxy (may be
null
).
FiddlerLeaseMap.ConstrainableFiddlerLeaseMap
private FiddlerLeaseMap.ConstrainableFiddlerLeaseMap(Fiddler server,
FiddlerLease lease,
long duration,
MethodConstraints methodConstraints)
- Constructs a new
ConstrainableFiddlerLeaseMap
instance.
For a description of all but the methodConstraints
argument (provided below), refer to the description for the
constructor of this class' super class.
- Parameters:
methodConstraints
- the client method constraints to place on
this proxy (may be null
).
canContainKey
public boolean canContainKey(Object key)
- Examines the input parameter to determine if that parameter will
be accepted or rejected by this map as a "legal" key value.
This method will return true if the key
parameter is
the type of lease which can be "batch-wise" renewed and cancelled
along with all of the other leases in the map.
For this implementation of the service, two leases can be
batched (placed in the same service-specific instance of
LeaseMap
) if those leases satisfy the following
conditions:
constrainServer
private static Fiddler constrainServer(Fiddler server,
MethodConstraints constraints)
- Returns a copy of the given server proxy having the client method
constraints that result after the specified method mapping is
applied to the given client method constraints.
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.