public final class StubConfiguration extends StubConfigurationBase
Constructor and Description |
---|
StubConfiguration() |
Modifier and Type | Method and Description |
---|---|
Set<ErrorType> |
getErrorTypes()
Returns
ErrorType s to be used for resolving VMODL2 for
method invocations by the configured Stub . |
RetryPolicy |
getRetryPolicy() |
ExecutionContext.SecurityContext |
getSecurityContext() |
void |
registerErrorTypes(List<ErrorType> errors)
Registers a list of
ErrorType s to be used by the
configured stub for resolving VMODL2 errors received as
result of a method invocation. |
void |
setRetryPolicy(RetryPolicy retryPolicy) |
void |
setSecurityContext(ExecutionContext.SecurityContext context) |
public void setSecurityContext(ExecutionContext.SecurityContext context)
context
- the security context that will be used in the stub.
can be null.public ExecutionContext.SecurityContext getSecurityContext()
getSecurityContext
in class StubConfigurationBase
SecurityContextFactory
public void registerErrorTypes(List<ErrorType> errors)
ErrorType
s to be used by the
configured stub for resolving VMODL2 errors received as
result of a method invocation.
The types for all standard VMODL2 errors are registered and resolvable by default. This method is useful for registration of additional types for custom errors.
errors
- types to register; can not null
;
can not contain null
elementspublic Set<ErrorType> getErrorTypes()
StubConfigurationBase
ErrorType
s to be used for resolving VMODL2 for
method invocations by the configured Stub
.getErrorTypes
in class StubConfigurationBase
ErrorType
spublic void setRetryPolicy(RetryPolicy retryPolicy)
retryPolicy
- retry policy for failed invocations; can be
null
public RetryPolicy getRetryPolicy()
getRetryPolicy
in class StubConfigurationBase
null
Copyright © 2015. All Rights Reserved.