org.entur.pubsub.base.EnturGooglePubSubConsumer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of entur-google-pubsub Show documentation
Show all versions of entur-google-pubsub Show documentation
Base configuration for Google PubSub clients, to be used for non-Camel clients.
Camel-based clients should use camel-entur-google-pubsub instead.
package org.entur.pubsub.base;
import java.util.Map;
/**
* Google PubSub message consumer.
*/
@FunctionalInterface
public interface EnturGooglePubSubConsumer {
/**
* Callback for PubSub message consumer, called upon message arrival.
* @param content message content
* @param headers message headers
*/
void onMessage(byte[] content, Map headers);
}