Class StringToNodeSelectorConverter
java.lang.Object
io.micronaut.elasticsearch.convert.StringToNodeSelectorConverter
- All Implemented Interfaces:
- io.micronaut.core.convert.TypeConverter<CharSequence,- org.elasticsearch.client.NodeSelector> 
@Singleton
@Requires(classes=org.elasticsearch.client.RestClientBuilder.class)
public class StringToNodeSelectorConverter
extends Object
implements io.micronaut.core.convert.TypeConverter<CharSequence,org.elasticsearch.client.NodeSelector> 
Converts String to 
NodeSelector.- Since:
- 1.0.0
- Author:
- Puneet Behl
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionOptional<org.elasticsearch.client.NodeSelector>convert(CharSequence object, Class<org.elasticsearch.client.NodeSelector> targetType, io.micronaut.core.convert.ConversionContext context) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.convert.TypeConverterconvert
- 
Constructor Details- 
StringToNodeSelectorConverterpublic StringToNodeSelectorConverter()
 
- 
- 
Method Details- 
convertpublic Optional<org.elasticsearch.client.NodeSelector> convert(CharSequence object, Class<org.elasticsearch.client.NodeSelector> targetType, io.micronaut.core.convert.ConversionContext context) - Specified by:
- convertin interface- io.micronaut.core.convert.TypeConverter<CharSequence,- org.elasticsearch.client.NodeSelector> 
 
 
-