Class ProtobufHandler

  • All Implemented Interfaces:
    Handler<byte[]>

    public class ProtobufHandler
    extends AbstractHandler<byte[]>
    Dispatches serialized protocol buffer messages to the provided Service by converting them to the POJO Request. Returns back the serialized protocol buffer response.
    • Field Detail

      • metrics

        private final org.apache.calcite.avatica.metrics.MetricsSystem metrics
      • serializationTimer

        private final org.apache.calcite.avatica.metrics.Timer serializationTimer
    • Constructor Detail

      • ProtobufHandler

        public ProtobufHandler​(Service service,
                               ProtobufTranslation translation,
                               org.apache.calcite.avatica.metrics.MetricsSystem metrics)