Package net.jini.core.constraint
Interface RelativeTimeConstraint
- All Superinterfaces:
InvocationConstraint
- All Known Implementing Classes:
ConnectionRelativeTime,ConstraintAlternatives,DelegationRelativeTime
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.
-
Method Summary
Modifier and TypeMethodDescriptionmakeAbsolute(long baseTime) Converts this constraint to absolute time.
-
Method Details
-
makeAbsolute
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 ofLong.MIN_VALUEorLong.MAX_VALUEis 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
-