Package dev.vality.damsel.base
Class Timer
java.lang.Object
org.apache.thrift.TUnion<Timer,Timer._Fields>
dev.vality.damsel.base.Timer
- All Implemented Interfaces:
Serializable,Comparable<Timer>,org.apache.thrift.TBase<Timer,,Timer._Fields> org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.19.0)",
date="2024-08-02")
public class Timer
extends org.apache.thrift.TUnion<Timer,Timer._Fields>
Критерий остановки таймера
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<Timer._Fields,org.apache.thrift.meta_data.FieldMetaData> Fields inherited from class org.apache.thrift.TUnion
setField_, value_ -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckType(Timer._Fields setField, Object value) intstatic TimerdeepCopy()protected Timer._FieldsenumForId(short id) booleanbooleanfieldForId(int fieldId) Отметка во времени, при пересечении которой таймер остановитсяprotected org.apache.thrift.protocol.TFieldgetFieldDesc(Timer._Fields setField) Map<Timer._Fields,org.apache.thrift.meta_data.FieldMetaData> protected org.apache.thrift.protocol.TStructintОтрезок времени, после истечения которого таймер остановится [секунды]inthashCode()booleanbooleanvoidsetDeadline(String value) Отметка во времени, при пересечении которой таймер остановитсяvoidsetTimeout(int value) Отрезок времени, после истечения которого таймер остановится [секунды]protected ObjectstandardSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TField field) protected voidstandardSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) static Timertimeout(int value) protected ObjecttupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, short fieldID) protected voidtupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) Methods inherited from class org.apache.thrift.TUnion
clear, getFieldValue, getFieldValue, getFieldValue, getSetField, isSet, isSet, isSet, read, setFieldValue, setFieldValue, toString, write
-
Field Details
-
metaDataMap
-
-
Constructor Details
-
Timer
public Timer() -
Timer
-
Timer
-
-
Method Details
-
deepCopy
-
timeout
-
deadline
-
checkType
- Specified by:
checkTypein classorg.apache.thrift.TUnion<Timer,Timer._Fields> - Throws:
ClassCastException
-
standardSchemeReadValue
protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TField field) throws org.apache.thrift.TException - Specified by:
standardSchemeReadValuein classorg.apache.thrift.TUnion<Timer,Timer._Fields> - Throws:
org.apache.thrift.TException
-
standardSchemeWriteValue
protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException - Specified by:
standardSchemeWriteValuein classorg.apache.thrift.TUnion<Timer,Timer._Fields> - Throws:
org.apache.thrift.TException
-
tupleSchemeReadValue
protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, short fieldID) throws org.apache.thrift.TException - Specified by:
tupleSchemeReadValuein classorg.apache.thrift.TUnion<Timer,Timer._Fields> - Throws:
org.apache.thrift.TException
-
tupleSchemeWriteValue
protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException - Specified by:
tupleSchemeWriteValuein classorg.apache.thrift.TUnion<Timer,Timer._Fields> - Throws:
org.apache.thrift.TException
-
getFieldDesc
- Specified by:
getFieldDescin classorg.apache.thrift.TUnion<Timer,Timer._Fields>
-
getStructDesc
protected org.apache.thrift.protocol.TStruct getStructDesc()- Specified by:
getStructDescin classorg.apache.thrift.TUnion<Timer,Timer._Fields>
-
enumForId
- Specified by:
enumForIdin classorg.apache.thrift.TUnion<Timer,Timer._Fields>
-
getFields
-
getFieldMetaData
-
fieldForId
-
getTimeout
public int getTimeout()Отрезок времени, после истечения которого таймер остановится [секунды] -
setTimeout
public void setTimeout(int value) Отрезок времени, после истечения которого таймер остановится [секунды] -
getDeadline
Отметка во времени, при пересечении которой таймер остановится -
setDeadline
Отметка во времени, при пересечении которой таймер остановится -
isSetTimeout
public boolean isSetTimeout() -
isSetDeadline
public boolean isSetDeadline() -
equals
-
equals
-
compareTo
-
hashCode
public int hashCode()
-