orbit-client / orbit.client.actor / ActorProxyFactory / createProxy

createProxy

fun <T : ActorWithNoKey> createProxy(grainType: Class<T>): T

Gets a reference to an Actor.

Parameters

T - The type of Actor.

Return
The Actor reference.

fun <T : ActorWithStringKey> createProxy(grainType: Class<T>, key: String): T

Gets a reference to an Actor with a string key.

Parameters

T - The type of Actor.

key - The key.

Return
The Actor reference.

fun <T : ActorWithInt32Key> createProxy(grainType: Class<T>, key: Int): T

Gets a reference to an Actor with an int32 key.

Parameters

T - The type of Actor.

key - The key.

Return
The Actor reference.

fun <T : ActorWithInt64Key> createProxy(grainType: Class<T>, key: Long): T

Gets a reference to an Actor with an int64 key.

Parameters

T - The type of Actor.

key - The key.

Return
The Actor reference.