public class Worker extends EventEmitter
Objs.Constructor<T extends Objs>, Objs.Property<T>
Modifier and Type | Field and Description |
---|---|
Objs.Property<String> |
id |
Objs.Property<ChildProcess> |
process |
Objs.Property<Boolean> |
suicide |
defaultMaxListeners, EventEmitter
Modifier | Constructor and Description |
---|---|
protected |
Worker(Objs.Constructor<?> c,
Object js) |
Modifier and Type | Method and Description |
---|---|
static Worker |
$as(Object obj) |
void |
destroy() |
void |
destroy(String signal) |
void |
disconnect() |
String |
id() |
void |
kill() |
void |
kill(String signal) |
ChildProcess |
process() |
void |
send(Object message) |
void |
send(Object message,
Object sendHandle) |
Boolean |
suicide() |
addListener, defaultMaxListeners, emit, EventEmitter, getMaxListeners, listenerCount, listenerCount, listeners, on, once, removeAllListeners, removeAllListeners, removeListener, setMaxListeners
$as, $cast, $delete, $get, $js, $set, create, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, newObject, newObject, preventExtensions, propertyIsEnumerable, seal, toLocaleString, toString, valueOf
public Objs.Property<String> id
public Objs.Property<ChildProcess> process
public Objs.Property<Boolean> suicide
protected Worker(Objs.Constructor<?> c, Object js)
public String id()
public ChildProcess process()
public Boolean suicide()
public void send(Object message)
public void kill(String signal)
public void kill()
public void destroy(String signal)
public void destroy()
public void disconnect()
Copyright © 2018. All rights reserved.