Class StringToReadConcernConverter

java.lang.Object
io.micronaut.configuration.mongo.core.convert.StringToReadConcernConverter
All Implemented Interfaces:
io.micronaut.core.convert.TypeConverter<CharSequence,com.mongodb.ReadConcern>

public class StringToReadConcernConverter extends Object implements io.micronaut.core.convert.TypeConverter<CharSequence,com.mongodb.ReadConcern>
Converters strings to ReadConcern objects.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • StringToReadConcernConverter

      public StringToReadConcernConverter()
  • Method Details

    • convert

      public Optional<com.mongodb.ReadConcern> convert(CharSequence object, Class<com.mongodb.ReadConcern> targetType, io.micronaut.core.convert.ConversionContext context)
      Specified by:
      convert in interface io.micronaut.core.convert.TypeConverter<CharSequence,com.mongodb.ReadConcern>