Skip to content

Commit

Permalink
Merge e0e4c5d into 1.1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
violetagg committed Jan 8, 2024
2 parents 7b3ea62 + e0e4c5d commit dc9ca3a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021-2023 VMware, Inc. or its affiliates, All Rights Reserved.
* Copyright (c) 2021-2024 VMware, Inc. or its affiliates, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -177,6 +177,7 @@ public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
}

public abstract ChannelHandler connectMetricsHandler();

public abstract ChannelHandler tlsMetricsHandler();

public abstract ChannelMetricsRecorder recorder();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019-2023 VMware, Inc. or its affiliates, All Rights Reserved.
* Copyright (c) 2019-2024 VMware, Inc. or its affiliates, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -83,7 +83,9 @@ public void connect(ChannelHandlerContext ctx, SocketAddress remoteAddress,
}

static class TlsMetricsHandler extends ChannelInboundHandlerAdapter {

protected final ChannelMetricsRecorder recorder;

TlsMetricsHandler(ChannelMetricsRecorder recorder) {
this.recorder = recorder;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021-2023 VMware, Inc. or its affiliates, All Rights Reserved.
* Copyright (c) 2021-2024 VMware, Inc. or its affiliates, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -133,6 +133,7 @@ void recordConnectTime(ChannelHandlerContext ctx, SocketAddress address, long co
}

static final class TlsMetricsHandler extends ChannelMetricsHandler.TlsMetricsHandler {

TlsMetricsHandler(ContextAwareChannelMetricsRecorder recorder) {
super(recorder);
}
Expand Down

0 comments on commit dc9ca3a

Please sign in to comment.