public final class ConstrainableSpaceProxy2 extends SpaceProxy2 implements net.jini.core.constraint.RemoteMethodControl
SpaceProxy2
Constructor and Description |
---|
ConstrainableSpaceProxy2(OutriggerServer space,
net.jini.id.Uuid spaceUuid,
long serverMaxServerQueryTimeout,
net.jini.core.constraint.MethodConstraints methodConstraints)
Create a new
ConstrainableSpaceProxy2 . |
Modifier and Type | Method and Description |
---|---|
protected net.jini.core.lease.Lease |
constructLease(net.jini.id.Uuid uuid,
long expiration)
Create a new lease with the specified id and initial expiration
|
net.jini.core.constraint.MethodConstraints |
getConstraints() |
net.jini.core.constraint.RemoteMethodControl |
setConstraints(net.jini.core.constraint.MethodConstraints constraints) |
contents, equals, getAdmin, getProxy, getReferentUuid, hashCode, newLease, notify, read, readIfExists, registerForAvailabilityEvent, snapshot, take, take, takeIfExists, toString, write, write
public ConstrainableSpaceProxy2(OutriggerServer space, net.jini.id.Uuid spaceUuid, long serverMaxServerQueryTimeout, net.jini.core.constraint.MethodConstraints methodConstraints)
ConstrainableSpaceProxy2
.space
- The OutriggerServer
for the
space.spaceUuid
- The universally unique ID for the
spaceserverMaxServerQueryTimeout
- The value this proxy
should use for the maxServerQueryTimeout
if no local value is provided.methodConstraints
- the client method constraints to place on
this proxy (may be null
).NullPointerException
- if space
or
spaceUuid
is null
.IllegalArgumentException
- if
serverMaxServerQueryTimeout
is not
larger than zero.ClassCastException
- if server
does not implement RemoteMethodControl
.public net.jini.core.constraint.RemoteMethodControl setConstraints(net.jini.core.constraint.MethodConstraints constraints)
setConstraints
in interface net.jini.core.constraint.RemoteMethodControl
public net.jini.core.constraint.MethodConstraints getConstraints()
getConstraints
in interface net.jini.core.constraint.RemoteMethodControl
protected net.jini.core.lease.Lease constructLease(net.jini.id.Uuid uuid, long expiration)
SpaceProxy2
constructLease
in class SpaceProxy2
uuid
- lease id.expiration
- time lease expires, in milliseconds since epoch.Copyright © 2016–2018. All rights reserved.