Package io.zenoh

Class Config

  • All Implemented Interfaces:

    
    public final class Config
    
                        

    Config class to set the Zenoh configuration to be used through a io.zenoh.Session.

    The configuration can be specified in two different ways:

    • By providing a file or a path to a file with the configuration

    • By providing a raw string configuration.

    Either way, the supported formats are yaml, json and json5.

    A default configuration can be loaded using Config.loadDefault.

    Visit the default configuration for more information on the Zenoh config parameters.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class Config.Companion
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getJson(String key) The json value associated to the key.
      final Unit insertJson5(String key, String value) Inserts a json5 value associated to the key into the Config.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait