public final class ConnectionAbsoluteTime extends Object implements InvocationConstraint, Serializable
Socket
-based communication, the intention is that this
constraint controls the timeout parameter of the
connect
method.Constructor and Description |
---|
ConnectionAbsoluteTime(AtomicSerial.GetArg arg) |
ConnectionAbsoluteTime(long time)
Creates a constraint with the specified deadline for connection
establishment.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Two instances of this class are equal if both have the same deadline.
|
long |
getTime()
Returns the deadline for connection establishment.
|
int |
hashCode()
Returns a hash code value for this object.
|
String |
toString()
Returns a string representation of this object.
|
public ConnectionAbsoluteTime(long time)
time
- the deadline for connection establishment in milliseconds
from midnight, January 1, 1970 UTCpublic ConnectionAbsoluteTime(AtomicSerial.GetArg arg) throws IOException
IOException
public long getTime()
public int hashCode()
public boolean equals(Object obj)
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.