@PubSubListener public class CustomHeaderSubscriber extends java.lang.Object
Constructor and Description |
---|
CustomHeaderSubscriber() |
Modifier and Type | Method and Description |
---|---|
void |
onMessage(Animal animal,
java.lang.String contentType,
java.lang.Integer code) |
@Subscription(value="animals") public void onMessage(Animal animal, @Header(value="Content-Type") java.lang.String contentType, @Header(value="code") java.lang.Integer code)