All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.influxdb.msgpack.MessagePackConverterFactory Maven / Gradle / Ivy

There is a newer version: 2.24
Show newest version
package org.influxdb.msgpack;

import java.lang.annotation.Annotation;
import java.lang.reflect.Type;

import okhttp3.ResponseBody;
import retrofit2.Converter;
import retrofit2.Retrofit;

/**
 * A Retrofit Convertor Factory for MessagePack response.
 *
 * @author hoan.le [at] bonitoo.io
 *
 */
public class MessagePackConverterFactory extends Converter.Factory {
  public static MessagePackConverterFactory create() {
    return new MessagePackConverterFactory();
  }

  @Override
  public Converter responseBodyConverter(final Type type, final Annotation[] annotations,
      final Retrofit retrofit) {
    return new MessagePackResponseBodyConverter();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy