package kafka.zk
sealed trait ZkAclChangeStore {
// only required properties (vals and methods) that have no implementation
// the others follow
val aclChangePath: String
def decode(bytes: Array[Byte]): Resource
protected def encode(resource: Resource): Array[Byte]
}
ZkAclChangeStore Contract
ZkAclChangeStore
is the contract of ZkAclChangeStores that FIXME.
Note
|
ZkAclChangeStore is a Scala sealed trait and so all the available implementations are in a single compilation unit (i.e. the file with the Scala source code).
|
Property | Description |
---|---|
|
|
|
|
|
ZkAclChangeStore | Description |
---|---|
ExtendedAclChangeStore |
|
LiteralAclChangeStore |
createListener
Method
createListener(
handler: AclChangeNotificationHandler,
zkClient: KafkaZkClient): AclChangeSubscription
createListener
creates a NotificationHandler that simply requests the input AclChangeNotificationHandler
to processNotification
after decoding the input notification message.
createListener
creates a ZkNodeChangeNotificationListener (with the input KafkaZkClient, the aclChangePath, acl_changes_ node prefix and the NotificationHandler
).
createListener
requests the ZkNodeChangeNotificationListener to init.
In the end, createListener
returns a new AclChangeSubscription
that requests the ZkNodeChangeNotificationListener to close when requested to close.
Note
|
createListener is used when…FIXME
|