Skip to content

Instantly share code, notes, and snippets.

View NABEEL-AHMED-JAMIL's full-sized avatar
🎯
I code, everyday.

Nabeel Ahmed NABEEL-AHMED-JAMIL

🎯
I code, everyday.
View GitHub Profile
@kleysonr
kleysonr / KafkaConsumerSample.java
Created January 15, 2018 21:29
Java Kafka Producer/Consumer Sample
package sample1;
import java.io.UnsupportedEncodingException;
import java.util.Arrays;
import java.util.Base64;
import java.util.Properties;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.clients.consumer.KafkaConsumer;
@mzimecki
mzimecki / ExecutorsExample.java
Created November 1, 2013 15:54
[Java] Callable, Future, Executors example
package com.zimek.executors;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;