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

com.gh.bmd.jrt.proxy.builder.ProxyBuilder Maven / Gradle / Ivy

/*
 * 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.proxy.builder;

import com.gh.bmd.jrt.builder.ConfigurableBuilder;
import com.gh.bmd.jrt.builder.InvocationConfiguration.Builder;
import com.gh.bmd.jrt.builder.ProxyConfigurableBuilder;

import javax.annotation.Nonnull;

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

* Created by davide-maestroni on 3/7/15. * * @param the interface type. */ public interface ProxyBuilder extends ConfigurableBuilder>, ProxyConfigurableBuilder> { /** * Returns a proxy object enabling asynchronous call 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.Alias Alias}, * {@link com.gh.bmd.jrt.annotation.Input Input}, * {@link com.gh.bmd.jrt.annotation.Inputs Inputs}, * {@link com.gh.bmd.jrt.annotation.Output Output}, * {@link com.gh.bmd.jrt.annotation.Priority Priority}, * {@link com.gh.bmd.jrt.annotation.ShareGroup ShareGroup}, * {@link com.gh.bmd.jrt.annotation.Timeout Timeout} and * {@link com.gh.bmd.jrt.annotation.TimeoutAction TimeoutAction} annotations.
* Note that such annotations will override any configuration set through the builder. *

* The proxy object is created through code generation based on the interfaces annotated with * {@link com.gh.bmd.jrt.proxy.annotation.Proxy Proxy}. * * @return the proxy object. */ @Nonnull TYPE buildProxy(); /** * Note that all the options related to the output and input channels will be ignored. * * @return the invocation configuration builder. */ @Nonnull Builder> invocations(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy