All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.strmprivacy.schemas.StrmEvent Maven / Gradle / Ivy

package io.strmprivacy.schemas;

/**
 * An event to be sent to Strm Privacy. All events that are sent by the Strm Privacy
 * Java Driver must implement this interface.
 */
public interface StrmEvent {

    /**
     * Get the Schema Ref for the Schema that goes with this event.
     * @return The Schema Ref (formatted as: 'handle/name/version').
     */
    String getSchemaRef();

    /**
     * Old version of {@link StrmEvent#getSchema()}.
     * @return The schema.
     * @deprecated This method will be removed in java-schema-common 1.0.0.
     */
    @Deprecated // Commented, because this requires JDK9+ (forRemoval = true)
    default Object getStrmSchema() {
        return getSchema();
    }

    /**
     * Get the Schema instance used to serialize the event.
     * @return The schema.
     */
    Object getSchema();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy