Class ConnectionAbsoluteTime

java.lang.Object
net.jini.core.constraint.ConnectionAbsoluteTime
All Implemented Interfaces:
Serializable, InvocationConstraint

public final class ConnectionAbsoluteTime extends Object implements InvocationConstraint, Serializable
Represents a constraint on the absolute time by which a network connection must be established. The precise meaning of this will vary across communication mechanisms, but in the typical case of Socket-based communication, the intention is that this constraint controls the timeout parameter of the connect method.
Since:
2.0
Author:
Sun Microsystems, Inc.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a constraint with the specified deadline for connection establishment.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Two instances of this class are equal if both have the same deadline.
    long
    Returns the deadline for connection establishment.
    int
    Returns a hash code value for this object.
    Returns a string representation of this object.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ConnectionAbsoluteTime

      public ConnectionAbsoluteTime(long time)
      Creates a constraint with the specified deadline for connection establishment.
      Parameters:
      time - the deadline for connection establishment in milliseconds from midnight, January 1, 1970 UTC
  • Method Details

    • getTime

      public long getTime()
      Returns the deadline for connection establishment.
      Returns:
      the deadline for connection establishment in milliseconds from midnight, January 1, 1970 UTC
    • hashCode

      public int hashCode()
      Returns a hash code value for this object.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Two instances of this class are equal if both have the same deadline.
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Returns a string representation of this object.
      Overrides:
      toString in class Object