Class PrivateWorkerKey

java.lang.Object
org.apache.storm.generated.PrivateWorkerKey
All Implemented Interfaces:
Serializable, Cloneable, Comparable<PrivateWorkerKey>, org.apache.storm.thrift.TBase<PrivateWorkerKey,PrivateWorkerKey._Fields>, org.apache.storm.thrift.TSerializable

@Generated("Autogenerated by Thrift Compiler (0.19.0)") public class PrivateWorkerKey extends Object implements org.apache.storm.thrift.TBase<PrivateWorkerKey,PrivateWorkerKey._Fields>, Serializable, Cloneable, Comparable<PrivateWorkerKey>
See Also:
  • Field Details

  • Constructor Details

    • PrivateWorkerKey

      public PrivateWorkerKey()
    • PrivateWorkerKey

      public PrivateWorkerKey(ByteBuffer key, String userName, long expirationTimeMillis)
    • PrivateWorkerKey

      public PrivateWorkerKey(PrivateWorkerKey other)
      Performs a deep copy on other.
  • Method Details

    • deepCopy

      public PrivateWorkerKey deepCopy()
      Specified by:
      deepCopy in interface org.apache.storm.thrift.TBase<PrivateWorkerKey,PrivateWorkerKey._Fields>
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.storm.thrift.TBase<PrivateWorkerKey,PrivateWorkerKey._Fields>
    • get_key

      public byte[] get_key()
    • buffer_for_key

      public ByteBuffer buffer_for_key()
    • set_key

      public void set_key(byte[] key)
    • set_key

      public void set_key(ByteBuffer key)
    • unset_key

      public void unset_key()
    • is_set_key

      public boolean is_set_key()
      Returns true if field key is set (has been assigned a value) and false otherwise
    • set_key_isSet

      public void set_key_isSet(boolean value)
    • get_userName

      public String get_userName()
    • set_userName

      public void set_userName(String userName)
    • unset_userName

      public void unset_userName()
    • is_set_userName

      public boolean is_set_userName()
      Returns true if field userName is set (has been assigned a value) and false otherwise
    • set_userName_isSet

      public void set_userName_isSet(boolean value)
    • get_expirationTimeMillis

      public long get_expirationTimeMillis()
    • set_expirationTimeMillis

      public void set_expirationTimeMillis(long expirationTimeMillis)
    • unset_expirationTimeMillis

      public void unset_expirationTimeMillis()
    • is_set_expirationTimeMillis

      public boolean is_set_expirationTimeMillis()
      Returns true if field expirationTimeMillis is set (has been assigned a value) and false otherwise
    • set_expirationTimeMillis_isSet

      public void set_expirationTimeMillis_isSet(boolean value)
    • setFieldValue

      public void setFieldValue(PrivateWorkerKey._Fields field, Object value)
      Specified by:
      setFieldValue in interface org.apache.storm.thrift.TBase<PrivateWorkerKey,PrivateWorkerKey._Fields>
    • getFieldValue

      public Object getFieldValue(PrivateWorkerKey._Fields field)
      Specified by:
      getFieldValue in interface org.apache.storm.thrift.TBase<PrivateWorkerKey,PrivateWorkerKey._Fields>
    • isSet

      public boolean isSet(PrivateWorkerKey._Fields field)
      Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
      Specified by:
      isSet in interface org.apache.storm.thrift.TBase<PrivateWorkerKey,PrivateWorkerKey._Fields>
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(PrivateWorkerKey that)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(PrivateWorkerKey other)
      Specified by:
      compareTo in interface Comparable<PrivateWorkerKey>
    • fieldForId

      public PrivateWorkerKey._Fields fieldForId(int fieldId)
      Specified by:
      fieldForId in interface org.apache.storm.thrift.TBase<PrivateWorkerKey,PrivateWorkerKey._Fields>
    • read

      public void read(org.apache.storm.thrift.protocol.TProtocol iprot) throws org.apache.storm.thrift.TException
      Specified by:
      read in interface org.apache.storm.thrift.TSerializable
      Throws:
      org.apache.storm.thrift.TException
    • write

      public void write(org.apache.storm.thrift.protocol.TProtocol oprot) throws org.apache.storm.thrift.TException
      Specified by:
      write in interface org.apache.storm.thrift.TSerializable
      Throws:
      org.apache.storm.thrift.TException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate() throws org.apache.storm.thrift.TException
      Throws:
      org.apache.storm.thrift.TException