@@ -0,0 +1,1577 @@
+/*%0A * Copyright 2019, OpenTelemetry Authors%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage io.opentelemetry.sdk.metrics.export;%0A%0Aimport io.opentelemetry.sdk.metrics.MetricData;%0Aimport java.util.Collection;%0A%0A/**%0A * Base interface that represents a metric exporter.%0A *%0A * @since 0.1.0%0A */%0Apublic interface MetricExporter %7B%0A%0A  /**%0A   * The possible results for the export method.%0A   *%0A   * @since 0.1.0%0A   */%0A  // TODO: extract this enum and unify it with SpanExporter.ResultCode%0A  enum ResultCode %7B%0A    /** The export operation finished successfully. */%0A    SUCCESS,%0A%0A    /** The export operation finished with an error, but retrying may succeed. */%0A    FAILED_RETRYABLE,%0A%0A    /**%0A     * The export operation finished with an error, the caller should not try to export the same%0A     * data again.%0A     */%0A    FAILED_NOT_RETRYABLE%0A  %7D%0A%0A  /**%0A   * Exports the collection of given %7B@link MetricData%7D.%0A   *%0A   * @param metrics the collection of %7B@link MetricData%7D to be exported.%0A   * @since 0.1.0%0A   */%0A  ResultCode export(Collection%3CMetricData%3E metrics);%0A%7D%0A

Add metric.export package to SDK (#541)