Class Sender


  • public class Sender
    extends java.lang.Object
    Code snippet for quick start.
    Since:
    2.7
    Author:
    Gary Russell
    • Constructor Summary

      Constructors 
      Constructor Description
      Sender​(KafkaTemplate<java.lang.Integer,​java.lang.String> template)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      void send​(java.lang.String toSend, int key)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Sender

        public Sender​(KafkaTemplate<java.lang.Integer,​java.lang.String> template)
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
      • send

        public void send​(java.lang.String toSend,
                         int key)