/*
Copyright (c) [2023] [squallzhao]
fountain is licensed under APACHE LICENSE, VERSION 2.0.
You can use this software according to the terms and conditions of the APACHE LICENSE, VERSION 2.0.
You may obtain a copy of APACHE LICENSE, VERSION 2.0 at: https://www.apache.org/licenses/LICENSE-2.0
*/
package microservice.common;
import std.sync.*
import std.time.*
public class Common{
public static var registryFirstInterval :Int64 = 0
public static var registryInterval :Int64 = 30
public static var discoveryFirstInterval :Int64 = 1
public static var discoveryInterval :Int64 = 15
public static func sleeps(second: Int64){
sleep(second*Duration.second)
}
public static func sleepms(milisecond: Int64){
sleep(milisecond*Duration.millisecond)
}
}