public interface LoaderObjectRoutineBuilder extends ObjectRoutineBuilder, LoaderConfigurableBuilder<LoaderObjectRoutineBuilder>
| Modifier and Type | Method and Description |
|---|---|
<IN,OUT> LoaderRoutine<IN,OUT> |
aliasMethod(String name)
Returns a routine used to call the method whose identifying name is specified in an
Alias annotation.Optional Priority,
ShareGroup,
Timeout,
TimeoutAction, as well as
CacheStrategy,
ClashResolution,
InputClashResolution,
LoaderId and
StaleTime method annotations will be
honored.Note that such annotations will override any configuration set through the builder. |
<TYPE> TYPE |
buildProxy(Class<TYPE> itf)
Returns a proxy object enabling asynchronous call of the target instance methods.
|
<TYPE> TYPE |
buildProxy(ClassToken<TYPE> itf)
Returns a proxy object enabling asynchronous call of the target instance methods.
|
InvocationConfiguration.Builder<? extends LoaderObjectRoutineBuilder> |
invocations()
Note that the configured asynchronous runner will be ignored.
|
<IN,OUT> LoaderRoutine<IN,OUT> |
method(Method method)
Returns a routine used to call the specified method.
|
<IN,OUT> LoaderRoutine<IN,OUT> |
method(String name,
Class<?>... parameterTypes)
Returns a routine used to call the specified method.
|
ProxyConfiguration.Builder<? extends LoaderObjectRoutineBuilder> |
proxies() |
loaders@Nonnull <IN,OUT> LoaderRoutine<IN,OUT> aliasMethod(@Nonnull String name)
Alias annotation.Priority,
ShareGroup,
Timeout,
TimeoutAction, as well as
CacheStrategy,
ClashResolution,
InputClashResolution,
LoaderId and
StaleTime method annotations will be
honored.aliasMethod in interface ObjectRoutineBuilderIN - the input data type.OUT - the output data type.name - the name specified in the annotation.IllegalArgumentException - if the specified method is not found.@Nonnull <TYPE> TYPE buildProxy(@Nonnull ClassToken<TYPE> itf)
Alias,
Priority,
ShareGroup,
Timeout,
TimeoutAction, as well as
CacheStrategy,
ClashResolution,
InputClashResolution,
LoaderId and
StaleTime annotations.buildProxy in interface ObjectRoutineBuilderTYPE - the interface type.itf - the token of the interface implemented by the return object.IllegalArgumentException - if the specified class token does not represent an
interface.@Nonnull <TYPE> TYPE buildProxy(@Nonnull Class<TYPE> itf)
Alias,
Priority,
ShareGroup,
Timeout,
TimeoutAction, as well as
CacheStrategy,
ClashResolution,
InputClashResolution,
LoaderId and
StaleTime annotations.buildProxy in interface ObjectRoutineBuilderTYPE - the interface type.itf - the token of the interface implemented by the return object.IllegalArgumentException - if the specified class does not represent an
interface.@Nonnull <IN,OUT> LoaderRoutine<IN,OUT> method(@Nonnull String name, @Nonnull Class<?>... parameterTypes)
Alias annotation. Though, optional
Priority,
ShareGroup,
Timeout,
TimeoutAction,
as well as CacheStrategy,
ClashResolution,
InputClashResolution,
LoaderId and
StaleTime method annotations will be
honored.method in interface ObjectRoutineBuilderIN - the input data type.OUT - the output data type.name - the method name.parameterTypes - the method parameter types.IllegalArgumentException - if no matching method is found.@Nonnull <IN,OUT> LoaderRoutine<IN,OUT> method(@Nonnull Method method)
Alias annotation. Though, optional
Priority,
ShareGroup,
Timeout,
TimeoutAction,
as well as CacheStrategy,
ClashResolution,
InputClashResolution,
LoaderId and
StaleTime method annotations will be
honored.method in interface ObjectRoutineBuilderIN - the input data type.OUT - the output data type.method - the method instance.@Nonnull InvocationConfiguration.Builder<? extends LoaderObjectRoutineBuilder> invocations()
invocations in interface ConfigurableBuilder<ObjectRoutineBuilder>@Nonnull ProxyConfiguration.Builder<? extends LoaderObjectRoutineBuilder> proxies()
proxies in interface ProxyConfigurableBuilder<ObjectRoutineBuilder>