toggle menu
openrs2
jvm
switch theme
search in API
openrs2
/
org.openrs2.game.net
/
NetworkService
Network
Service
@
Singleton
class
NetworkService
@
Inject
constructor
(
bootstrapFactory
:
BootstrapFactory
,
httpInitializer
:
HttpChannelInitializer
,
rs2Initializer
:
Rs2ChannelInitializer
)
:
AbstractService
Members
Constructors
Network
Service
Link copied to clipboard
@
Inject
constructor
(
bootstrapFactory
:
BootstrapFactory
,
httpInitializer
:
HttpChannelInitializer
,
rs2Initializer
:
Rs2ChannelInitializer
)
Functions
add
Listener
Link copied to clipboard
override
fun
addListener
(
listener
:
Service.Listener
,
executor
:
Executor
)
await
Running
Link copied to clipboard
override
fun
awaitRunning
(
)
override
fun
awaitRunning
(
timeout
:
Duration
)
override
fun
awaitRunning
(
timeout
:
Long
,
unit
:
TimeUnit
)
await
Terminated
Link copied to clipboard
override
fun
awaitTerminated
(
)
override
fun
awaitTerminated
(
timeout
:
Duration
)
override
fun
awaitTerminated
(
timeout
:
Long
,
unit
:
TimeUnit
)
failure
Cause
Link copied to clipboard
override
fun
failureCause
(
)
:
Throwable
is
Running
Link copied to clipboard
override
fun
isRunning
(
)
:
Boolean
start
Async
Link copied to clipboard
@
CanIgnoreReturnValue
override
fun
startAsync
(
)
:
Service
state
Link copied to clipboard
override
fun
state
(
)
:
Service.State
stop
Async
Link copied to clipboard
@
CanIgnoreReturnValue
override
fun
stopAsync
(
)
:
Service
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String