Search in sources :

Example 1 with KafkaBinding

use of io.aklivity.zilla.runtime.binding.kafka.internal.KafkaBinding in project zilla by aklivity.

the class CacheFetchIT method initPartition.

@Before
public void initPartition() {
    final KafkaBinding binding = engine.binding(KafkaBinding.class);
    final KafkaCache cache = binding.supplyCache("test.cache0");
    final KafkaCacheTopic topic = cache.supplyTopic("test");
    this.partition = topic.supplyFetchPartition(0);
}
Also used : KafkaCache(io.aklivity.zilla.runtime.binding.kafka.internal.cache.KafkaCache) KafkaBinding(io.aklivity.zilla.runtime.binding.kafka.internal.KafkaBinding) KafkaCacheTopic(io.aklivity.zilla.runtime.binding.kafka.internal.cache.KafkaCacheTopic) Before(org.junit.Before)

Aggregations

KafkaBinding (io.aklivity.zilla.runtime.binding.kafka.internal.KafkaBinding)1 KafkaCache (io.aklivity.zilla.runtime.binding.kafka.internal.cache.KafkaCache)1 KafkaCacheTopic (io.aklivity.zilla.runtime.binding.kafka.internal.cache.KafkaCacheTopic)1 Before (org.junit.Before)1