Class CustomHeaderSubscriber


  • @PubSubListener
    public class CustomHeaderSubscriber
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onMessage​(Animal animal, java.lang.String contentType, java.lang.Integer code)  
      • Methods inherited from class java.lang.Object

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

      • CustomHeaderSubscriber

        public CustomHeaderSubscriber()
    • Method Detail

      • onMessage

        @Subscription("animals")
        public void onMessage​(Animal animal,
                              @Header("Content-Type")
                              java.lang.String contentType,
                              @Header("code")
                              java.lang.Integer code)