blob: bbd6341b6c7e2515852e85241a3c9f1d90c34c77 [file] [log] [blame]
/*
* Copyright (c) 2020 Kentyou.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Kentyou - initial API and implementation
*/
package org.eclipse.sensinact.gateway.core;
import org.eclipse.sensinact.gateway.common.primitive.ProcessableData;
/**
* A {@link ProcessaData} processable by a {@link ResourceImpl}
*/
public interface ResourceProcessableData extends ProcessableData {
/**
* Returns the String identifier of the targeted {@link Attribute}
*
* @return the String identifier of the targeted {@link Attribute}
*/
String getAttributeId();
/**
* Returns the String identifier of the targeted {@link Metadata}
*
* @return the String identifier of the targeted {@link Metadata}
*/
String getMetadataId();
/**
* Returns the data object value of this ResourceProcessableData
*
* @return the data object value
*/
Object getData();
/**
* Returns the timestamp of the update of the targeted {@link Attribute} or
* {@link Metadata}
*
* @return the update timestamp
*/
long getTimestamp();
}