|
32 | 32 | package io.grpc; |
33 | 33 |
|
34 | 34 | import com.google.errorprone.annotations.DoNotMock; |
35 | | -import java.net.SocketAddress; |
36 | | -import javax.net.ssl.SSLSession; |
37 | 35 |
|
38 | 36 | /** |
39 | 37 | * Encapsulates a single call received from a remote client. Calls may not simply be unary |
|
54 | 52 | */ |
55 | 53 | @DoNotMock("Use InProcessTransport and make a fake server instead") |
56 | 54 | public abstract class ServerCall<ReqT, RespT> { |
57 | | - /** |
58 | | - * {@link Attributes.Key} for the remote address of server call attributes |
59 | | - * {@link ServerCall#getAttributes()} |
60 | | - * |
61 | | - * @deprecated use the equivalent {@link io.grpc.Grpc#TRANSPORT_ATTR_REMOTE_ADDR} instead |
62 | | - */ |
63 | | - @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1710") |
64 | | - @Deprecated |
65 | | - public static final Attributes.Key<SocketAddress> REMOTE_ADDR_KEY = |
66 | | - Grpc.TRANSPORT_ATTR_REMOTE_ADDR; |
67 | | - |
68 | | - /** |
69 | | - * {@link Attributes.Key} for the SSL session of server call attributes |
70 | | - * {@link ServerCall#getAttributes()} |
71 | | - * |
72 | | - * @deprecated use the equivalent {@link io.grpc.Grpc#TRANSPORT_ATTR_SSL_SESSION} instead |
73 | | - */ |
74 | | - @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1710") |
75 | | - @Deprecated |
76 | | - public static final Attributes.Key<SSLSession> SSL_SESSION_KEY = |
77 | | - Grpc.TRANSPORT_ATTR_SSL_SESSION; |
78 | 55 |
|
79 | 56 | /** |
80 | 57 | * Callbacks for consuming incoming RPC messages. |
@@ -238,15 +215,6 @@ public Attributes getAttributes() { |
238 | 215 | return Attributes.EMPTY; |
239 | 216 | } |
240 | 217 |
|
241 | | - /** |
242 | | - * @deprecated use {@link #getAttributes()} instead. |
243 | | - */ |
244 | | - @Deprecated |
245 | | - @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1779") |
246 | | - public Attributes attributes() { |
247 | | - return getAttributes(); |
248 | | - } |
249 | | - |
250 | 218 | /** |
251 | 219 | * The {@link MethodDescriptor} for the call. |
252 | 220 | */ |
|
0 commit comments