net.jini.core.constraint
Interface RelativeTimeConstraint
- All Superinterfaces: 
 - InvocationConstraint
 
- All Known Implementing Classes: 
 - ConnectionRelativeTime, ConstraintAlternatives, DelegationRelativeTime
 
public interface RelativeTimeConstraint
- extends InvocationConstraint
 
Implemented by constraints that are expressed in terms of relative time,
 to support conversion to absolute time constraints.
- Since:
 
  - 2.0
 
- Author:
 
  - Sun Microsystems, Inc.
 
 
makeAbsolute
InvocationConstraint makeAbsolute(long baseTime)
- Converts this constraint to absolute time.  Takes an absolute time,
 specified in milliseconds from midnight, January 1, 1970 UTC, and
 returns a constraint that has the same information content as this
 constraint except that the relative times have been converted to
 absolute times by adding the specified absolute time to each relative
 time in this constraint. If the addition results in underflow or
 overflow, a time value of 
Long.MIN_VALUE or
 Long.MAX_VALUE is used, respectively. The returned
 constraint will typically be an instance of a different constraint
 class than this constraint.
 
- Parameters:
 baseTime - an absolute time, specified in milliseconds from
 midnight, January 1, 1970 UTC
- Returns:
 - a constraint that has the relative times converted to absolute
 times by adding the specified absolute time to each relative time
 
 
 
Copyright © GigaSpaces.