Class Latency


  • public class Latency
    extends Toxic
    • Field Detail

      • latency

        private long latency
      • jitter

        private long jitter
    • Constructor Detail

      • Latency

        public Latency​(HttpClient httpClient,
                       java.lang.String toxicListPath,
                       java.lang.String name,
                       ToxicDirection stream,
                       long latency)
                throws java.io.IOException
        Throws:
        java.io.IOException
      • Latency

        public Latency​(HttpClient httpClient,
                       java.lang.String path,
                       com.google.gson.JsonObject json)
    • Method Detail

      • setAttributes

        protected void setAttributes​(com.google.gson.JsonObject attributes)
        Specified by:
        setAttributes in class Toxic
      • getAttributes

        protected com.google.gson.JsonObject getAttributes()
        Specified by:
        getAttributes in class Toxic
      • getLatency

        public long getLatency()
      • getJitter

        public long getJitter()
      • setLatency

        public Latency setLatency​(long latency)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • setJitter

        public Latency setJitter​(long jitter)
                          throws java.io.IOException
        Throws:
        java.io.IOException