Class BraveService
java.lang.Object
com.linecorp.armeria.common.util.AbstractUnwrappable<com.linecorp.armeria.server.Service<T_I,T_O>>
com.linecorp.armeria.server.DecoratingService<I,O,I,O>
com.linecorp.armeria.server.SimpleDecoratingService<com.linecorp.armeria.common.HttpRequest,com.linecorp.armeria.common.HttpResponse>
com.linecorp.armeria.server.SimpleDecoratingHttpService
com.linecorp.armeria.server.brave.BraveService
- All Implemented Interfaces:
com.linecorp.armeria.common.util.Unwrappable,com.linecorp.armeria.server.HttpService,com.linecorp.armeria.server.Service<com.linecorp.armeria.common.HttpRequest,com.linecorp.armeria.common.HttpResponse>
public final class BraveService
extends com.linecorp.armeria.server.SimpleDecoratingHttpService
-
Method Summary
Modifier and TypeMethodDescriptionstatic Function<? super com.linecorp.armeria.server.HttpService,BraveService> newDecorator(HttpTracing httpTracing) Creates a new tracingHttpServicedecorator using the specifiedHttpTracinginstance.static Function<? super com.linecorp.armeria.server.HttpService,BraveService> newDecorator(brave.Tracing tracing) Creates a new tracingHttpServicedecorator using the specifiedTracinginstance.com.linecorp.armeria.common.HttpResponseserve(com.linecorp.armeria.server.ServiceRequestContext ctx, com.linecorp.armeria.common.HttpRequest req) Methods inherited from class com.linecorp.armeria.server.SimpleDecoratingHttpService
exchangeTypeMethods inherited from class com.linecorp.armeria.server.DecoratingService
serviceAdded, shouldCachePathMethods inherited from class com.linecorp.armeria.common.util.AbstractUnwrappable
as, toString, unwrap, unwrapAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.linecorp.armeria.server.HttpService
decorate, decorateMethods inherited from interface com.linecorp.armeria.server.Service
as, serviceAdded, shouldCachePath, unwrapMethods inherited from interface com.linecorp.armeria.common.util.Unwrappable
equalsIgnoreWrapper, unwrapAll
-
Method Details
-
newDecorator
public static Function<? super com.linecorp.armeria.server.HttpService,BraveService> newDecorator(brave.Tracing tracing) Creates a new tracingHttpServicedecorator using the specifiedTracinginstance. -
newDecorator
public static Function<? super com.linecorp.armeria.server.HttpService,BraveService> newDecorator(HttpTracing httpTracing) Creates a new tracingHttpServicedecorator using the specifiedHttpTracinginstance. -
serve
public com.linecorp.armeria.common.HttpResponse serve(com.linecorp.armeria.server.ServiceRequestContext ctx, com.linecorp.armeria.common.HttpRequest req) throws Exception - Throws:
Exception
-