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

com.caesarealabs.rpc4k.runtime.implementation.PortPool.kt Maven / Gradle / Ivy

There is a newer version: 0.7.1
Show newest version
package com.caesarealabs.rpc4k.runtime.implementation

object PortPool {
    private var current = 8080

    @Synchronized
    fun get(): Int {
        if (current == 8200) error("Too many ports are being requested")
        return current++
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy