public final class InvocationConfiguration extends Object
TimeoutException will be thrown.| Modifier and Type | Class and Description |
|---|---|
static interface |
InvocationConfiguration.AgingPriority
Interface exposing constants which can be used as a common set of priorities.
Note that, since the priority value can be any in an integer range, it is always possible to customize the values so to create a personalized set. |
static class |
InvocationConfiguration.Builder<TYPE>
Builder of invocation configurations.
|
static interface |
InvocationConfiguration.Configurable<TYPE>
Interface defining a configurable object.
|
static interface |
InvocationConfiguration.NotAgingPriority
Interface exposing constants which can be used as a set of priorities ignoring the aging of
executions.
Note that, since the priority value can be any in an integer range, it is always possible to customize the values so to create a personalized set. |
static class |
InvocationConfiguration.OrderType
Enumeration defining how data are ordered inside a channel.
|
static class |
InvocationConfiguration.TimeoutActionType
Enumeration indicating the type of action to be taken on output channel timeout.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT
Constant indicating the default value of an integer attribute.
|
static InvocationConfiguration |
DEFAULT_CONFIGURATION
Empty configuration constant.
The configuration has all the options set to their default. |
| Modifier and Type | Method and Description |
|---|---|
static InvocationConfiguration.Builder<InvocationConfiguration> |
builder()
Returns an invocation configuration builder.
|
InvocationConfiguration.Builder<InvocationConfiguration> |
builderFrom()
Returns an invocation configuration builder initialized with this configuration.
|
static InvocationConfiguration.Builder<InvocationConfiguration> |
builderFrom(InvocationConfiguration initialConfiguration)
Returns an invocation configuration builder initialized with the specified configuration.
|
boolean |
equals(Object o) |
int |
getCoreInstancesOr(int valueIfNotSet)
Returns the maximum number of retained invocation instances (DEFAULT by default).
|
int |
getInputMaxSizeOr(int valueIfNotSet)
Returns the maximum number of buffered input data (DEFAULT by default).
|
InvocationConfiguration.OrderType |
getInputOrderTypeOr(InvocationConfiguration.OrderType valueIfNotSet)
Returns the input data order (null by default).
|
TimeDuration |
getInputTimeoutOr(TimeDuration valueIfNotSet)
Returns the maximum timeout while waiting for an input to be passed to the input channel
(null by default).
|
Log.Level |
getLogLevelOr(Log.Level valueIfNotSet)
Returns the log level (null by default).
|
Log |
getLogOr(Log valueIfNotSet)
Returns the log instance (null by default).
|
int |
getMaxInstancesOr(int valueIfNotSet)
Returns the maximum number of parallel running invocation instances (DEFAULT by default).
|
int |
getOutputMaxSizeOr(int valueIfNotSet)
Returns the maximum number of buffered output data (DEFAULT by default).
|
InvocationConfiguration.OrderType |
getOutputOrderTypeOr(InvocationConfiguration.OrderType valueIfNotSet)
Returns the output data order (null by default).
|
TimeDuration |
getOutputTimeoutOr(TimeDuration valueIfNotSet)
Returns the maximum timeout while waiting for an output to be passed to the result channel
(null by default).
|
int |
getPriorityOr(int valueIfNotSet)
Returns the invocation priority (DEFAULT by default).
|
InvocationConfiguration.TimeoutActionType |
getReadTimeoutActionOr(InvocationConfiguration.TimeoutActionType valueIfNotSet)
Returns the action to be taken if the timeout elapses before a readable result is available
(null by default).
|
TimeDuration |
getReadTimeoutOr(TimeDuration valueIfNotSet)
Returns the timeout for an invocation instance to produce a readable result (null by
default).
|
Runner |
getRunnerOr(Runner valueIfNotSet)
Returns the runner used for asynchronous invocations (null by default).
|
int |
hashCode() |
Logger |
newLogger(Object context)
Creates a new logger.
|
String |
toString() |
public static final int DEFAULT
public static final InvocationConfiguration DEFAULT_CONFIGURATION
@NotNull public static InvocationConfiguration.Builder<InvocationConfiguration> builder()
@NotNull public static InvocationConfiguration.Builder<InvocationConfiguration> builderFrom(@Nullable InvocationConfiguration initialConfiguration)
initialConfiguration - the initial configuration.@NotNull public InvocationConfiguration.Builder<InvocationConfiguration> builderFrom()
public int getCoreInstancesOr(int valueIfNotSet)
valueIfNotSet - the default value if none was set.public int getInputMaxSizeOr(int valueIfNotSet)
valueIfNotSet - the default value if none was set.public InvocationConfiguration.OrderType getInputOrderTypeOr(@Nullable InvocationConfiguration.OrderType valueIfNotSet)
valueIfNotSet - the default value if none was set.public TimeDuration getInputTimeoutOr(@Nullable TimeDuration valueIfNotSet)
valueIfNotSet - the default value if none was set.public Log.Level getLogLevelOr(@Nullable Log.Level valueIfNotSet)
valueIfNotSet - the default value if none was set.public Log getLogOr(@Nullable Log valueIfNotSet)
valueIfNotSet - the default value if none was set.public int getMaxInstancesOr(int valueIfNotSet)
valueIfNotSet - the default value if none was set.public int getOutputMaxSizeOr(int valueIfNotSet)
valueIfNotSet - the default value if none was set.public InvocationConfiguration.OrderType getOutputOrderTypeOr(@Nullable InvocationConfiguration.OrderType valueIfNotSet)
valueIfNotSet - the default value if none was set.public TimeDuration getOutputTimeoutOr(@Nullable TimeDuration valueIfNotSet)
valueIfNotSet - the default value if none was set.public int getPriorityOr(int valueIfNotSet)
valueIfNotSet - the default value if none was set.public InvocationConfiguration.TimeoutActionType getReadTimeoutActionOr(@Nullable InvocationConfiguration.TimeoutActionType valueIfNotSet)
valueIfNotSet - the default value if none was set.public TimeDuration getReadTimeoutOr(@Nullable TimeDuration valueIfNotSet)
valueIfNotSet - the default value if none was set.public Runner getRunnerOr(@Nullable Runner valueIfNotSet)
valueIfNotSet - the default value if none was set.