class Client extends Object with IEventEmitter
Kafka-Node Client
- Annotations
- @RawJSType() @native() @JSImport( "kafka-node" , "Client" )
new Client(connectionString, clientId, [zkOptions], [noAckBatchOptions])
Example:
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Client
- IEventEmitter
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Client()
-
new
Client(connectionString: String, clientId: String = js.native, zkOptions: |[ClientOptions, RawOptions] = js.native, noAckBatchOptions: |[NoAckBatchOptions, RawOptions] = js.native)
- connectionString
Zookeeper connection string, default localhost:2181/
- clientId
This is a user-supplied identifier for the client application, default kafka-node-client
- zkOptions
Zookeeper options, see node-zookeeper-client
- noAckBatchOptions
when requireAcks is disabled on Producer side we can define the batch properties
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addListener(eventName: String, listener: Function): Client.this.type
- Definition Classes
- IEventEmitter
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
close(callback: Function): Unit
Closes the connection to Zookeeper and the brokers so that the node process can exit gracefully.
Closes the connection to Zookeeper and the brokers so that the node process can exit gracefully.
- callback
the callback
-
val
domain: String
- Definition Classes
- IEventEmitter
-
def
emit(name: String, args: Any*): Any
- Definition Classes
- IEventEmitter
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getMaxListeners(): Int
- Definition Classes
- IEventEmitter
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
def
listenerCount(eventName: String): Int
- Definition Classes
- IEventEmitter
-
def
listeners(eventName: String): Array[Function]
- Definition Classes
- IEventEmitter
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
on(eventName: String, listener: Function): Client.this.type
- Definition Classes
- IEventEmitter
-
def
once(eventName: String, listener: Function): Client.this.type
- Definition Classes
- IEventEmitter
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
def
removeAllListeners(): Client.this.type
- Definition Classes
- IEventEmitter
-
def
removeAllListeners(eventName: String): Client.this.type
- Definition Classes
- IEventEmitter
-
def
removeListener(eventName: String, listener: Function): Client.this.type
- Definition Classes
- IEventEmitter
-
def
setMaxListeners(n: Int): Client.this.type
- Definition Classes
- IEventEmitter
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
val
usingDomains: Boolean
- Definition Classes
- IEventEmitter
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
zk: ZookeeperClientWrapper
Undocumented property