src/main/java/reactor/netty/channel/BootstrapHandlers.java
/**
	 * Find the given typed configuration consumer or return null;
	 *
	 * @param clazz the type of configuration to find
	 * @param handler optional handler to scan
	 * @param <C> configuration consumer type
	 *
	 * @return a typed configuration or null
	 */
Find the given typed configuration consumer or return null;
@param clazz the type of configuration to find
@param handler optional handler to scan
@param  configuration consumer type

@return a typed configuration or null
Find the given typed configuration consumer or return null ; @param clazz the type of configuration to find @param handler optional handler to scan @param configuration consumer type @return a typed configuration or null
@Nullable
	@SuppressWarnings("unchecked")
	public static <C> C findConfiguration(Class<C> clazz,
										  @Nullable ChannelHandler handler) {
		Objects.requireNonNull(clazz, "configuration type");
		if (handler instanceof BootstrapPipelineHandler) {
			BootstrapPipelineHandler rph =
					(BootstrapPipelineHandler) handler;
			for (PipelineConfiguration aRph : rph) {
				if (clazz.isInstance(aRph.consumer)) {
					return (C) aRph.consumer;
				}
				if (clazz.isInstance(aRph.deferredConsumer)) {
					return (C) aRph.deferredConsumer;
				}
			}
		}
		return null;
	}
@ Nullable @ SuppressWarnings ( "unchecked" ) public static < C > C findConfiguration ( Class < C > clazz , @ Nullable ChannelHandler handler ) { Objects . requireNonNull ( clazz , "configuration type" ) ; if ( handler instanceof BootstrapPipelineHandler ) { BootstrapPipelineHandler rph = ( BootstrapPipelineHandler ) handler ; for ( PipelineConfiguration aRph : rph ) { if ( clazz . isInstance ( aRph . consumer ) ) { return ( C ) aRph . consumer ; } if ( clazz . isInstance ( aRph . deferredConsumer ) ) { return ( C ) aRph . deferredConsumer ; } } } return null ; }
Find the given typed configuration consumer or return null;
 @param clazz the type of configuration to find
 @param handler optional handler to scan
 @param <C> configuration consumer type
Find the given typed configuration consumer or return null ; @param clazz the type of configuration to find @param handler optional handler to scan @param <C > configuration consumer type