Class Slicer


  • public class Slicer
    extends Toxic
    • Field Detail

      • averageSize

        private long averageSize
      • sizeVariation

        private long sizeVariation
      • delay

        private long delay
    • Constructor Detail

      • Slicer

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

        public Slicer​(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
      • getAverageSize

        public long getAverageSize()
      • getSizeVariation

        public long getSizeVariation()
      • getDelay

        public long getDelay()
      • setAverageSize

        public Slicer setAverageSize​(long averageSize)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • setSizeVariation

        public Slicer setSizeVariation​(long sizeVariation)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • setDelay

        public Slicer setDelay​(long delay)
                        throws java.io.IOException
        Throws:
        java.io.IOException