66package io .opentelemetry .opamp .client .internal ;
77
88import io .opentelemetry .opamp .client .internal .response .MessageData ;
9- import javax .annotation .Nonnull ;
9+ import javax .annotation .Nullable ;
1010import opamp .proto .AgentDescription ;
1111import opamp .proto .RemoteConfigStatus ;
1212import opamp .proto .ServerErrorResponse ;
@@ -67,7 +67,7 @@ interface Callbacks {
6767 *
6868 * @param client The relevant {@link OpampClient} instance.
6969 */
70- void onConnect (@ Nonnull OpampClient client );
70+ void onConnect (OpampClient client );
7171
7272 /**
7373 * Called when the connection to the Server cannot be established. May be called after {@link
@@ -77,7 +77,7 @@ interface Callbacks {
7777 * @param client The relevant {@link OpampClient} instance.
7878 * @param throwable The exception.
7979 */
80- void onConnectFailed (@ Nonnull OpampClient client , Throwable throwable );
80+ void onConnectFailed (OpampClient client , @ Nullable Throwable throwable );
8181
8282 /**
8383 * Called when the Server reports an error in response to some previously sent request. Useful
@@ -88,7 +88,7 @@ interface Callbacks {
8888 * @param client The relevant {@link OpampClient} instance.
8989 * @param errorResponse The error returned by the Server.
9090 */
91- void onErrorResponse (@ Nonnull OpampClient client , @ Nonnull ServerErrorResponse errorResponse );
91+ void onErrorResponse (OpampClient client , ServerErrorResponse errorResponse );
9292
9393 /**
9494 * Called when the Agent receives a message that needs processing. See {@link MessageData}
@@ -102,6 +102,6 @@ interface Callbacks {
102102 * @param client The relevant {@link OpampClient} instance.
103103 * @param messageData The server response data that needs processing.
104104 */
105- void onMessage (@ Nonnull OpampClient client , @ Nonnull MessageData messageData );
105+ void onMessage (OpampClient client , MessageData messageData );
106106 }
107107}
0 commit comments