@ContractsProvided(value=FaultToleranceService.class) @Service(name="microprofile-fault-tolerance-service") @RunLevel(value=10) public class FaultToleranceServiceImpl extends Object implements EventListener, FaultToleranceService, fish.payara.monitoring.collect.MonitoringDataSource, FaultToleranceRequestTracing
EventListener.Event<T>| Constructor and Description |
|---|
FaultToleranceServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
collect(fish.payara.monitoring.collect.MonitoringDataCollector collector) |
void |
endSpan() |
void |
event(EventListener.Event<?> event)
Process a Glassfish/Payara event
|
FaultToleranceConfig |
getConfig(javax.interceptor.InvocationContext context,
Stereotypes stereotypes)
Creates an instance of a
FaultToleranceConfig bound to the given InvocationContext and
Stereotypes lookup. |
FaultToleranceMethodContext |
getMethodContext(javax.interceptor.InvocationContext context,
FaultTolerancePolicy policy,
javax.enterprise.context.control.RequestContextController requestContextController)
Get or create the context object for processing the annotated method represented by the given
InvocationContext. |
void |
postConstruct() |
void |
startSpan(RequestTraceSpan span,
javax.interceptor.InvocationContext context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMethodContext@PostConstruct public void postConstruct()
public void event(EventListener.Event<?> event)
EventListenerevent in interface EventListenerpublic void collect(fish.payara.monitoring.collect.MonitoringDataCollector collector)
collect in interface fish.payara.monitoring.collect.MonitoringDataSourcepublic FaultToleranceConfig getConfig(javax.interceptor.InvocationContext context, Stereotypes stereotypes)
FaultToleranceServiceFaultToleranceConfig bound to the given InvocationContext and
Stereotypes lookup.getConfig in interface FaultToleranceServicecontext - currently processed contextstereotypes - way to lookup sterotype annotationsFaultToleranceConfig instance bound to the given contextpublic void startSpan(RequestTraceSpan span, javax.interceptor.InvocationContext context)
startSpan in interface FaultToleranceRequestTracingpublic void endSpan()
endSpan in interface FaultToleranceRequestTracingpublic FaultToleranceMethodContext getMethodContext(javax.interceptor.InvocationContext context, FaultTolerancePolicy policy, javax.enterprise.context.control.RequestContextController requestContextController)
FaultToleranceServiceInvocationContext.getMethodContext in interface FaultToleranceServicecontext - represents the FT annotated method being calledpolicy - the policy being used for this executionrequestContextController - the controller to use or nullFaultToleranceMethodContext to use to process the method invocation with FT semantics. This
is a context specific to the target object and called method.Copyright © 2020. All rights reserved.