added mooTwo
This commit is contained in:
parent
8ae3f15f8e
commit
a25e17cc1a
@ -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
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user