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

org.eclipse.hono.application.client.MessageProperties Maven / Gradle / Ivy

Go to download

Clients for Hono's northbound APIs that are required for implementing business applications

There is a newer version: 2.6.0
Show newest version
/*
 * Copyright (c) 2021 Contributors to the Eclipse Foundation
 *
 * See the NOTICE file(s) distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0
 *
 * SPDX-License-Identifier: EPL-2.0
 */

package org.eclipse.hono.application.client;

import java.util.Map;

/**
 * The metadata of a {@link Message}.
 * 

* Implementations for a specific messaging system may add different kinds of specific properties. */ public interface MessageProperties { /** * Gets the metadata properties. * * @return returns the message properties or an empty map if no properties set. */ Map getPropertiesMap(); /** * Gets a property value. * * @param name The property name. * @param type The expected value type. * @param The expected type of the property value. * @return The property value or {@code null} if the property is not set or is of an unexpected type. * @throws NullPointerException if any of the parameters is {@code null}. */ T getProperty(String name, Class type); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy