pl
.
touk
.
nussknacker
.
engine
.
kafka
KafkaUtils
Related Doc:
package kafka
object
KafkaUtils
extends
LazyLogging
Linear Supertypes
LazyLogging
,
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
KafkaUtils
LazyLogging
AnyRef
Any
Hide All
Show All
Visibility
Public
All
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
final
val
KafkaTopicUsageKey
:
NamingContext
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@HotSpotIntrinsicCandidate
()
@throws
(
...
)
def
createKafkaAdminClient
(
kafkaConfig:
KafkaConfig
)
:
Admin
val
defaultTimeoutMillis
:
Int
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
Annotations
@HotSpotIntrinsicCandidate
()
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
Annotations
@HotSpotIntrinsicCandidate
()
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
lazy val
logger
:
Logger
Attributes
protected
Definition Classes
LazyLogging
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
Annotations
@HotSpotIntrinsicCandidate
()
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
Annotations
@HotSpotIntrinsicCandidate
()
def
prepareKafkaTopic
(
topic:
String
,
processObjectDependencies:
ProcessObjectDependencies
)
:
PreparedKafkaTopic
def
producerCallback
(
promise:
Promise
[
RecordMetadata
]
)
:
Callback
def
readLastMessages
(
topic:
String
,
size:
Int
,
config:
KafkaConfig
)
:
List
[
ConsumerRecord
[
Array
[
Byte
],
Array
[
Byte
]]]
def
sanitizeClientId
(
originalId:
String
)
:
String
def
sendToKafka
[
K
,
V
]
(
record:
ProducerRecord
[
K
,
V
]
)
(
producer:
Producer
[
K
,
V
]
)
:
Future
[
RecordMetadata
]
def
sendToKafka
[
K
,
V
]
(
topic:
String
,
key:
K
,
value:
V
)
(
producer:
Producer
[
K
,
V
]
)
:
Future
[
RecordMetadata
]
def
sendToKafkaWithTempProducer
(
record:
ProducerRecord
[
Array
[
Byte
],
Array
[
Byte
]]
)
(
kafkaProducerCreator:
KafkaProducerCreator
[
Array
[
Byte
],
Array
[
Byte
]]
)
:
Future
[
RecordMetadata
]
def
sendToKafkaWithTempProducer
(
topic:
String
,
key:
Array
[
Byte
]
,
value:
Array
[
Byte
]
)
(
kafkaProducerCreator:
KafkaProducerCreator
[
Array
[
Byte
],
Array
[
Byte
]]
)
:
Future
[
RecordMetadata
]
def
setClientId
(
props:
Properties
,
id:
String
)
:
Unit
def
setOffsetToLatest
(
topic:
String
,
groupId:
String
,
config:
KafkaConfig
)
:
Unit
def
setToLatestOffsetIfNeeded
(
config:
KafkaConfig
,
topic:
String
,
consumerGroupId:
String
)
:
Unit
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toProducerProperties
(
config:
KafkaConfig
,
clientId:
String
)
:
Properties
def
toProperties
(
config:
KafkaConfig
,
groupId:
Option
[
String
]
)
:
Properties
def
toString
()
:
String
Definition Classes
AnyRef → Any
def
usingAdminClient
[
T
]
(
kafkaConfig:
KafkaConfig
)
(
adminClientOperation: (
Admin
) ⇒
T
)
:
T
def
validateTopicsExistence
(
topics:
List
[
PreparedKafkaTopic
]
,
kafkaConfig:
KafkaConfig
)
:
Unit
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
withPropertiesFromConfig
(
props:
Properties
,
kafkaConfig:
KafkaConfig
)
:
Properties
Deprecated Value Members
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@Deprecated
@deprecated
@throws
(
classOf[java.lang.Throwable]
)
Deprecated
(Since version )
see corresponding Javadoc for more information.
Inherited from
LazyLogging
Inherited from
AnyRef
Inherited from
Any
Ungrouped