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

com.gh.bmd.jrt.routine.WrapperBuilder Maven / Gradle / Ivy

There is a newer version: 5.9.0
Show newest version
/**
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.gh.bmd.jrt.routine;

import com.gh.bmd.jrt.builder.RoutineConfiguration;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

/**
 * Interface defining a builder of async wrapper objects.
 * 

* Created by davide on 3/7/15. * * @param the interface type. */ public interface WrapperBuilder extends SharableBuilder { /** * Returns a wrapper object enabling asynchronous calling of the target instance methods. *

* The routines used for calling the methods will honor the attributes specified in any * optional {@link com.gh.bmd.jrt.annotation.Bind}, {@link com.gh.bmd.jrt.annotation.Timeout} * and {@link com.gh.bmd.jrt.annotation.Pass} annotations.
* Note that such annotations will override any configuration set through the builder. *

* The wrapping object is created through code generation based on the interfaces annotated * with {@link com.gh.bmd.jrt.annotation.Wrap}.
* Note that, you'll need to enable annotation pre-processing by adding the processor package * to the specific project dependencies. * * @return the wrapping object. */ @Nonnull public TYPE buildWrapper(); /** * Note that all the options related to the output and input channels will be ignored. * * @param configuration the routine configuration. * @return this builder. */ @Nonnull @Override public WrapperBuilder withConfiguration(@Nullable RoutineConfiguration configuration); @Nonnull @Override public WrapperBuilder withShareGroup(@Nullable String group); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy