Akka.Configuration.Config.GetLong C# (CSharp) Method

GetLong() public method

Retrieves a long value from the specified path in the configuration.
public GetLong ( string path, long @default ) : long
path string The path that contains the value to retrieve.
@default long
return long
        public virtual long GetLong(string path, long @default = 0)
        {
            HoconValue value = GetNode(path);
            if (value == null)
                return @default;

            return value.GetLong();
        }

Usage Example

 public CassandraJournalSettings(Config config)
     : base(config)
 {
     PartitionSize = config.GetLong("partition-size");
     MaxResultSize = config.GetInt("max-result-size");
 }