lib/src/kbasesearchengine/main/IndexerWorkerConfigurator.java
public Builder withEventHandler(final EventHandler handler) {
            Utils.nonNull(handler, "handler");
            if (eventHandlers.containsKey(handler.getStorageCode())) {
                throw new IllegalArgumentException(
                        "Already registered a handler for storage code " +
                        handler.getStorageCode());
            }
            eventHandlers.put(handler.getStorageCode(), handler);
            return this;
        }
/** Add an event handler to the worker configurator.
         * @param handler the event handler.
         * @return this builder.
         */
Add an event handler to the worker configurator.
@param handler the event handler.
@return this builder.
Add an event handler to the worker configurator . @param handler the event handler . @return this builder .
public Builder withEventHandler(final EventHandler handler) {
            Utils.nonNull(handler, "handler");
            if (eventHandlers.containsKey(handler.getStorageCode())) {
                throw new IllegalArgumentException(
                        "Already registered a handler for storage code " +
                        handler.getStorageCode());
            }
            eventHandlers.put(handler.getStorageCode(), handler);
            return this;
        }
public Builder withEventHandler ( final EventHandler handler ) { Utils . nonNull ( handler , "handler" ) ; if ( eventHandlers . containsKey ( handler . getStorageCode ( ) ) ) { throw new IllegalArgumentException ( "Already registered a handler for storage code " + handler . getStorageCode ( ) ) ; } eventHandlers . put ( handler . getStorageCode ( ) , handler ) ; return this ; }
Add an event handler to the worker configurator.
Add an event handler to the worker configurator .