It's the sample of customer handler sample
It will introduce how to write a customer handler
public class MyHandler extends AbstractHandler {
@Override
public void handle(Invocation invocation, AsyncResponse asyncResp) throws Exception {
// code before
invocation.next(response -> {
// code after
asyncResp.handle(response);
});
}
}<config>
<handler id="myhandler" class="xxx.xxx.xxx.MyHandler" />
</config>cse:
handler:
chain:
Provider:
default: bizkeeper-provider,tracing-provider,sla-provider,perf-stats,myhandlerhow to start the service center
mvn test -Pservermvn test -Pclient