toggle menu
openrs2
jvm
switch theme
search in API
openrs2
/
org.openrs2.game.net.js5
/
Js5Service
Js5Service
@
Singleton
class
Js5Service
@
Inject
constructor
(
store
:
Store
,
masterIndex
:
Js5MasterIndex
,
alloc
:
ByteBufAllocator
)
:
AbstractExecutionThreadService
Members
Constructors
Js5Service
Link copied to clipboard
@
Inject
constructor
(
store
:
Store
,
masterIndex
:
Js5MasterIndex
,
alloc
:
ByteBufAllocator
)
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
notify
If
Not
Empty
Link copied to clipboard
fun
notifyIfNotEmpty
(
client
:
Js5Client
)
push
Link copied to clipboard
fun
push
(
client
:
Js5Client
,
request
:
Js5Request.Group
)
read
If
Not
Full
Link copied to clipboard
fun
readIfNotFull
(
client
:
Js5Client
)
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