package io.netty.channel;

import g.a.a.a.a;

/* JADX INFO: loaded from: classes.dex */
public final class WriteBufferWaterMark {
    public static final WriteBufferWaterMark DEFAULT = new WriteBufferWaterMark(32768, 65536, false);
    private static final int DEFAULT_HIGH_WATER_MARK = 65536;
    private static final int DEFAULT_LOW_WATER_MARK = 32768;
    private final int high;
    private final int low;

    public WriteBufferWaterMark(int i2, int i3) {
        this(i2, i3, true);
    }

    public WriteBufferWaterMark(int i2, int i3, boolean z2) {
        if (z2) {
            if (i2 < 0) {
                throw new IllegalArgumentException("write buffer's low water mark must be >= 0");
            }
            if (i3 < i2) {
                throw new IllegalArgumentException(a.o("write buffer's high water mark cannot be less than  low water mark (", i2, "): ", i3));
            }
        }
        this.low = i2;
        this.high = i3;
    }

    public int high() {
        return this.high;
    }

    public int low() {
        return this.low;
    }

    public String toString() {
        StringBuilder sb = new StringBuilder(55);
        sb.append("WriteBufferWaterMark(low: ");
        sb.append(this.low);
        sb.append(", high: ");
        return a.y(sb, this.high, ")");
    }
}
