Class DHTDBValueImpl

java.lang.Object
com.biglybt.core.dht.db.impl.DHTDBValueImpl
All Implemented Interfaces:
DHTDBValue, DHTTransportValue

public class DHTDBValueImpl extends Object implements DHTDBValue
  • Field Details

    • ZERO_LENGTH_BYTE_ARRAY

      private static final byte[] ZERO_LENGTH_BYTE_ARRAY
    • creation_time

      private long creation_time
    • value

      private byte[] value
    • originator

      private DHTTransportContact originator
    • sender

      private DHTTransportContact sender
    • local

      private final boolean local
    • flags

      private byte flags
    • life_hours

      private final byte life_hours
    • rep_control

      private final byte rep_control
    • version

      private int version
    • store_time

      private long store_time
  • Constructor Details

    • DHTDBValueImpl

      protected DHTDBValueImpl(long _creation_time, byte[] _value, int _version, DHTTransportContact _originator, DHTTransportContact _sender, boolean _local, int _flags, int _life_hours, byte _rep_control)
      constructor for the originator of values only
      Parameters:
      _creation_time -
      _value -
      _originator -
      _sender -
      _flags -
      _distance -
    • DHTDBValueImpl

      protected DHTDBValueImpl(DHTTransportContact _sender, DHTTransportValue _other, boolean _local)
      Constructor used to generate values for relaying to other contacts or receiving a value from another contact - adjusts the sender Originator, creation time, flags and value are fixed.
      Parameters:
      _sender -
      _other -
  • Method Details