com.arm.mbed.cloud.sdk.common.ApiMetadataCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mbed-cloud-sdk Show documentation
Show all versions of mbed-cloud-sdk Show documentation
The Pelion Cloud SDK (formerly known as Mbed Cloud SDK) provides a simplified interface to the Pelion Cloud APIs by exposing functionality using conventions and paradigms familiar to Java developers.
package com.arm.mbed.cloud.sdk.common;
import com.arm.mbed.cloud.sdk.annotations.Internal;
import com.arm.mbed.cloud.sdk.annotations.Preamble;
@Preamble(description = "Cache storing API Metadata")
@Internal
public class ApiMetadataCache {
private ApiMetadata lastMetadata;
public ApiMetadataCache() {
super();
lastMetadata = null;
}
public synchronized void storeMetadata(ApiMetadata metadata) {
lastMetadata = metadata;
}
public synchronized void clearMetadata() {
lastMetadata = null;
}
public synchronized ApiMetadata getLastApiMetadata() {
return lastMetadata;
}
}