Package com.barchart.udt
Class LingerUDT
java.lang.Object
java.lang.Number
com.barchart.udt.LingerUDT
- All Implemented Interfaces:
Serializable,Comparable<LingerUDT>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LingerUDTprivate static final long(package private) final int -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
LINGER_ZERO
-
timeout
final int timeout -
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
LingerUDT
Default constructor. NOTE: linger value is "u_short" on windows and "int" on linux:
Windows: linger Structure on Windows
Linux: GCC Socket-Level Options
Therefore select smallest range: 0 invalid input: '<'= linger invalid input: '<'= 65535- Parameters:
lingerSeconds- the seconds to linger; "0" means "do not linger"- Throws:
IllegalArgumentException- when lingerSeconds is out of range
-
-
Method Details
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein classNumber
-
floatValue
public float floatValue()- Specified by:
floatValuein classNumber
-
intValue
public int intValue() -
longValue
public long longValue() -
isLingerOn
boolean isLingerOn() -
timeout
int timeout() -
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<LingerUDT>
-
toString
-