Packages

class Worker extends Object with StObject

Annotations
@JSType() @JSImport("cluster", "Worker") @native()
Source
clusterMod.scala
Linear Supertypes
StObject, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Worker
  2. StObject
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Worker(options: EventEmitterOptions)
  2. new Worker()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addListener(event: java.lang.String, listener: Function1[Any, Unit]): Worker.this.type

    events.EventEmitter

    events.EventEmitter

    1. disconnect 2. error 3. exit 4. listening 5. message 6. online
  5. def addListener_disconnect(event: disconnect, listener: Function0[Unit]): Worker.this.type
    Annotations
    @JSName("addListener")
  6. def addListener_error(event: error, listener: Function1[Error, Unit]): Worker.this.type
    Annotations
    @JSName("addListener")
  7. def addListener_exit(event: exit, listener: Function2[Double, java.lang.String, Unit]): Worker.this.type
    Annotations
    @JSName("addListener")
  8. def addListener_listening(event: listening, listener: Function1[Address, Unit]): Worker.this.type
    Annotations
    @JSName("addListener")
  9. def addListener_message(event: message, listener: Function2[Any, |[Socket, Server], Unit]): Worker.this.type
    Annotations
    @JSName("addListener")
  10. def addListener_online(event: online, listener: Function0[Unit]): Worker.this.type
    Annotations
    @JSName("addListener")
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  13. def destroy(signal: java.lang.String): Unit
  14. def destroy(): Unit
  15. def disconnect(): Unit
  16. def emit(event: Symbol, args: Any*): Boolean
  17. def emit(event: java.lang.String, args: Any*): Boolean
  18. def emit_disconnect(event: disconnect): Boolean
    Annotations
    @JSName("emit")
  19. def emit_error(event: error, error: Error): Boolean
    Annotations
    @JSName("emit")
  20. def emit_exit(event: exit, code: Double, signal: java.lang.String): Boolean
    Annotations
    @JSName("emit")
  21. def emit_listening(event: listening, address: Address): Boolean
    Annotations
    @JSName("emit")
  22. def emit_message(event: message, message: Any, handle: Socket): Boolean
    Annotations
    @JSName("emit")
  23. def emit_message(event: message, message: Any, handle: Server): Boolean
    Annotations
    @JSName("emit")
  24. def emit_online(event: online): Boolean
    Annotations
    @JSName("emit")
  25. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  27. var exitedAfterDisconnect: Boolean
  28. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  29. def hasOwnProperty(v: scala.Predef.String): Boolean
    Definition Classes
    Object
  30. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  31. var id: Double
  32. def isConnected(): Boolean
  33. def isDead(): Boolean
  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  36. def kill(signal: java.lang.String): Unit
  37. def kill(): Unit
  38. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  39. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  40. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  41. def on(event: java.lang.String, listener: Function1[Any, Unit]): Worker.this.type
  42. def on_disconnect(event: disconnect, listener: Function0[Unit]): Worker.this.type
    Annotations
    @JSName("on")
  43. def on_error(event: error, listener: Function1[Error, Unit]): Worker.this.type
    Annotations
    @JSName("on")
  44. def on_exit(event: exit, listener: Function2[Double, java.lang.String, Unit]): Worker.this.type
    Annotations
    @JSName("on")
  45. def on_listening(event: listening, listener: Function1[Address, Unit]): Worker.this.type
    Annotations
    @JSName("on")
  46. def on_message(event: message, listener: Function2[Any, |[Socket, Server], Unit]): Worker.this.type
    Annotations
    @JSName("on")
  47. def on_online(event: online, listener: Function0[Unit]): Worker.this.type
    Annotations
    @JSName("on")
  48. def once(event: java.lang.String, listener: Function1[Any, Unit]): Worker.this.type
  49. def once_disconnect(event: disconnect, listener: Function0[Unit]): Worker.this.type
    Annotations
    @JSName("once")
  50. def once_error(event: error, listener: Function1[Error, Unit]): Worker.this.type
    Annotations
    @JSName("once")
  51. def once_exit(event: exit, listener: Function2[Double, java.lang.String, Unit]): Worker.this.type
    Annotations
    @JSName("once")
  52. def once_listening(event: listening, listener: Function1[Address, Unit]): Worker.this.type
    Annotations
    @JSName("once")
  53. def once_message(event: message, listener: Function2[Any, |[Socket, Server], Unit]): Worker.this.type
    Annotations
    @JSName("once")
  54. def once_online(event: online, listener: Function0[Unit]): Worker.this.type
    Annotations
    @JSName("once")
  55. def prependListener(event: java.lang.String, listener: Function1[Any, Unit]): Worker.this.type
  56. def prependListener_disconnect(event: disconnect, listener: Function0[Unit]): Worker.this.type
    Annotations
    @JSName("prependListener")
  57. def prependListener_error(event: error, listener: Function1[Error, Unit]): Worker.this.type
    Annotations
    @JSName("prependListener")
  58. def prependListener_exit(event: exit, listener: Function2[Double, java.lang.String, Unit]): Worker.this.type
    Annotations
    @JSName("prependListener")
  59. def prependListener_listening(event: listening, listener: Function1[Address, Unit]): Worker.this.type
    Annotations
    @JSName("prependListener")
  60. def prependListener_message(event: message, listener: Function2[Any, |[Socket, Server], Unit]): Worker.this.type
    Annotations
    @JSName("prependListener")
  61. def prependListener_online(event: online, listener: Function0[Unit]): Worker.this.type
    Annotations
    @JSName("prependListener")
  62. def prependOnceListener(event: java.lang.String, listener: Function1[Any, Unit]): Worker.this.type
  63. def prependOnceListener_disconnect(event: disconnect, listener: Function0[Unit]): Worker.this.type
    Annotations
    @JSName("prependOnceListener")
  64. def prependOnceListener_error(event: error, listener: Function1[Error, Unit]): Worker.this.type
    Annotations
    @JSName("prependOnceListener")
  65. def prependOnceListener_exit(event: exit, listener: Function2[Double, java.lang.String, Unit]): Worker.this.type
    Annotations
    @JSName("prependOnceListener")
  66. def prependOnceListener_listening(event: listening, listener: Function1[Address, Unit]): Worker.this.type
    Annotations
    @JSName("prependOnceListener")
  67. def prependOnceListener_message(event: message, listener: Function2[Any, |[Socket, Server], Unit]): Worker.this.type
    Annotations
    @JSName("prependOnceListener")
  68. def prependOnceListener_online(event: online, listener: Function0[Unit]): Worker.this.type
    Annotations
    @JSName("prependOnceListener")
  69. var process: ChildProcess
  70. def propertyIsEnumerable(v: scala.Predef.String): Boolean
    Definition Classes
    Object
  71. def send(message: Serializable, sendHandle: Unit, callback: Function1[|[Error, Null], Unit]): Boolean
  72. def send(message: Serializable, sendHandle: SendHandle, callback: Function1[|[Error, Null], Unit]): Boolean
  73. def send(message: Serializable, sendHandle: SendHandle): Boolean
  74. def send(message: Serializable): Boolean
  75. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  76. def toLocaleString(): scala.Predef.String
    Definition Classes
    Object
  77. def toString(): java.lang.String
    Definition Classes
    AnyRef → Any
  78. def valueOf(): Any
    Definition Classes
    Object
  79. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  80. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  81. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from StObject

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped