public final class Exports extends Objs
Objs.Constructor<T extends Objs>, Objs.Property<T>
Modifier and Type | Field and Description |
---|---|
static Objs.Property<Boolean> |
isMaster |
static Objs.Property<Boolean> |
isWorker |
static Objs.Property<ClusterSettings> |
settings |
static Objs.Property<Worker> |
worker |
static Objs.Property<Worker[]> |
workers |
Modifier and Type | Method and Description |
---|---|
static void |
addListener(String event,
Function listener) |
static void |
disconnect() |
static void |
disconnect(Function callback) |
static Boolean |
emit(String event,
Object... args) |
static Worker |
fork() |
static Worker |
fork(Object env) |
static Array<Function> |
listeners(String event) |
static Object |
on(String event,
Function listener) |
static void |
on(Void event,
Function.A1<? super Object,? extends Void> listener) |
static void |
on(Void event,
Function.A2<? super Worker,? super Object,? extends Void> listener) |
static void |
on(Void event,
Function.A3<? super Worker,? super Number,? super String,? extends Void> listener) |
static void |
once(String event,
Function listener) |
static void |
removeAllListeners() |
static void |
removeAllListeners(String event) |
static void |
removeListener(String event,
Function listener) |
static void |
setMaxListeners(double n) |
static void |
setupMaster() |
static void |
setupMaster(ClusterSettings settings) |
$as, $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 static Objs.Property<ClusterSettings> settings
public static Objs.Property<Boolean> isMaster
public static Objs.Property<Boolean> isWorker
public static Objs.Property<Worker> worker
public static Objs.Property<Worker[]> workers
public static void disconnect(Function callback)
public static void disconnect()
public static Worker fork()
public static void on(Void event, Function.A1<? super Object,? extends Void> listener)
public static void on(Void event, Function.A2<? super Worker,? super Object,? extends Void> listener)
public static void on(Void event, Function.A3<? super Worker,? super Number,? super String,? extends Void> listener)
public static void removeAllListeners(String event)
public static void removeAllListeners()
public static void setMaxListeners(double n)
public static void setupMaster(ClusterSettings settings)
public static void setupMaster()
Copyright © 2018. All rights reserved.