public final class UnicastSocketTimeout extends Object implements InvocationConstraint, Serializable
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
private int |
timeout
The socket timeout.
|
Constructor and Description |
---|
UnicastSocketTimeout(int timeout)
Creates a
UnicastSocketTimeout constraint for the given
timeout. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getTimeout()
Returns the socket timeout.
|
int |
hashCode() |
private void |
readObject(ObjectInputStream in) |
String |
toString() |
private static final long serialVersionUID
private final int timeout
public UnicastSocketTimeout(int timeout)
UnicastSocketTimeout
constraint for the given
timeout.timeout
- the socket timeoutIllegalArgumentException
- if the given timeout is negativepublic int getTimeout()
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.