Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add empty default functionality for put and set metadata
Add empty default functionality for put and set metadata

[#204]
  • Loading branch information
smcvb committed Dec 5, 2017
commit 039cff55f1522f7644a464a933ca0ae8004584c1
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,18 @@ public interface ServiceInstance {
/**
* Add a key/value pair to the metadata map.
*
* @param key a metadata key as a String
* @param key a metadata key as a String
* @param value a corresponding metadata value as a String
*/
void putMetadata(String key, String value);
default void putMetadata(String key, String value) {
}

/**
* Replace the current metadata map for a new one.
*
* @param metadata a metadata map to replace the current metadata
*/
void setMetadata(Map<String, String> metadata);
default void setMetadata(Map<String, String> metadata) {
}

}