All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.satori.mods.suite.RtmSubscribeModSettings Maven / Gradle / Ivy

The newest version!
package com.satori.mods.suite;

import com.satori.composer.rtm.*;
import com.satori.composer.rtm.core.*;
import com.satori.mods.core.config.*;

import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.*;

@JsonInclude(JsonInclude.Include.NON_DEFAULT)
public class RtmSubscribeModSettings extends RtmDriverConfig {
  public static final int defaultWindowMaxSize = 64 * 1024;
  
  @JsonProperty("windows-max-size")
  public int windowMaxSize = defaultWindowMaxSize;
  
  public RtmSubscribeModSettings() {
  }
  
  public void validate() throws InvalidConfigException {
    super.validate();
    if (windowMaxSize <= 0) {
      throw new InvalidConfigException("invalid windows-max-size");
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy