Interface KeyExtractor
-
public interface KeyExtractor
A KeyExtractor can extract the Pub/Sub Lite 'key' field used for message routing from a PubsubMessage. It will by default use the ordering_key field directly for this if it exists.An empty ByteString implies that the message should have no ordering key.
-
-
Field Summary
Fields Modifier and Type Field Description static KeyExtractor
DEFAULT
An extractor that gets the routing key from the ordering key field.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.protobuf.ByteString
extractKey(com.google.pubsub.v1.PubsubMessage message)
Extract the ByteString routing key from a PubsubMessage.
-
-
-
Field Detail
-
DEFAULT
static final KeyExtractor DEFAULT
An extractor that gets the routing key from the ordering key field.
-
-