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.14.2)",
           date="2022-10-25")
public class Timer
extends org.apache.thrift.TUnion<Timer,​Timer._Fields>
See Also:
Serialized Form
  • Field Details

    • metaDataMap

      public static final Map<Timer._Fields,​org.apache.thrift.meta_data.FieldMetaData> metaDataMap
  • Constructor Details

    • Timer

      public Timer()
    • Timer

      public Timer​(Timer._Fields setField, Object value)
    • Timer

      public Timer​(Timer other)
  • Method Details

    • deepCopy

      public Timer deepCopy()
    • timeout

      public static Timer timeout​(int value)
    • deadline

      public static Timer deadline​(String value)
    • checkType

      protected void checkType​(Timer._Fields setField, Object value) throws ClassCastException
      Specified by:
      checkType in class org.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:
      standardSchemeReadValue in class org.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:
      standardSchemeWriteValue in class org.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:
      tupleSchemeReadValue in class org.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:
      tupleSchemeWriteValue in class org.apache.thrift.TUnion<Timer,​Timer._Fields>
      Throws:
      org.apache.thrift.TException
    • getFieldDesc

      protected org.apache.thrift.protocol.TField getFieldDesc​(Timer._Fields setField)
      Specified by:
      getFieldDesc in class org.apache.thrift.TUnion<Timer,​Timer._Fields>
    • getStructDesc

      protected org.apache.thrift.protocol.TStruct getStructDesc()
      Specified by:
      getStructDesc in class org.apache.thrift.TUnion<Timer,​Timer._Fields>
    • enumForId

      protected Timer._Fields enumForId​(short id)
      Specified by:
      enumForId in class org.apache.thrift.TUnion<Timer,​Timer._Fields>
    • getFields

      public Timer._Fields[] getFields()
    • getFieldMetaData

      public Map<Timer._Fields,​org.apache.thrift.meta_data.FieldMetaData> getFieldMetaData()
    • fieldForId

      public Timer._Fields fieldForId​(int fieldId)
    • getTimeout

      public int getTimeout()
      Отрезок времени, после истечения которого таймер остановится
    • setTimeout

      public void setTimeout​(int value)
      Отрезок времени, после истечения которого таймер остановится
    • getDeadline

      public String getDeadline()
      Отметка во времени, при пересечении которой таймер остановится
    • setDeadline

      public void setDeadline​(String value)
      Отметка во времени, при пересечении которой таймер остановится
    • isSetTimeout

      public boolean isSetTimeout()
    • isSetDeadline

      public boolean isSetDeadline()
    • equals

      public boolean equals​(Object other)
      Overrides:
      equals in class Object
    • equals

      public boolean equals​(Timer other)
    • compareTo

      public int compareTo​(Timer other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object