added mooTwo

This commit is contained in:
Robinson 2023-02-16 23:23:47 +01:00
parent 8ae3f15f8e
commit a25e17cc1a
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
2 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,7 @@ package dorkboxTest.network.rmi.cows
interface TestCow : TestCowBase {
fun moo()
fun moo(value: String)
fun mooTwo(value: String): String
suspend fun moo(value: String, delay: Long)
fun id(): Int
suspend fun slow(): Float

View File

@ -35,6 +35,10 @@ open class TestCowImpl(val id: Int) : TestCowBaseImpl(), TestCow {
throw RuntimeException("Should never be executed!")
}
override fun mooTwo(value: String): String {
return "moo-two: $value"
}
fun moo(connection: Connection, value: String) {
moos += 2
connection.logger.error("Moo! $moos: $value")