1 /* 2 * Copyright 2018, OpenCensus Authors 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package io.opencensus.trace; 18 19 /** 20 * Superclass for {@link MessageEvent} and {@link NetworkEvent} to resolve API backward 21 * compatibility issue. 22 * 23 * <p>{@code SpanData.create} can't be overloaded with parameter types that differ only in the type 24 * of the TimedEvent, because the signatures are the same after generic type erasure. {@code 25 * BaseMessageEvent} allows the same method to accept both {@code TimedEvents<NetworkEvent>} and 26 * {@code TimedEvents<MessageEvent>}. 27 * 28 * <p>This class should only be extended by {@code NetworkEvent} and {@code MessageEvent}. 29 * 30 * @deprecated This class is for internal use only. 31 * @since 0.12 32 */ 33 @Deprecated 34 public abstract class BaseMessageEvent { 35 // package protected to avoid users to extend it. BaseMessageEvent()36 BaseMessageEvent() {} 37 } 38