-
- All Implemented Interfaces:
public class LifetimeAttribute extends Attribute
The LIFETIME attribute is used to know the lifetime of TURN allocations.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringNAMEpublic final static charDATA_LENGTHintlifetime
-
Method Summary
Modifier and Type Method Description intgetLifetime()Get the lifetime. voidsetLifetime(int lifetime)Set the lifetime. booleanequals(Object obj)Compares two STUN Attributes. StringgetName()Returns the human readable name of this attribute. chargetDataLength()Returns the length of this attribute's body. Array<byte>encode()Returns a binary representation of this attribute. -
-
Method Detail
-
getLifetime
int getLifetime()
Get the lifetime.
-
setLifetime
void setLifetime(int lifetime)
Set the lifetime.
- Parameters:
lifetime- lifetime
-
equals
boolean equals(Object obj)
Compares two STUN Attributes. Attributes are considered equal when their type, length, and all data are the same.
- Parameters:
obj- the object to compare this attribute with.
-
getName
String getName()
Returns the human readable name of this attribute. Attribute names do not really matter from the protocol point of view. They are only used for debugging and readability.
-
getDataLength
char getDataLength()
Returns the length of this attribute's body.
-
-
-
-