forked from PingPlusPlus/pingpp-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMetadataStore.java
More file actions
21 lines (17 loc) · 792 Bytes
/
MetadataStore.java
File metadata and controls
21 lines (17 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.pingplusplus.model;
import java.util.Map;
import com.pingplusplus.exception.APIConnectionException;
import com.pingplusplus.exception.APIException;
import com.pingplusplus.exception.AuthenticationException;
import com.pingplusplus.exception.InvalidRequestException;
/**
* Common interface for Pingpp objects that can store metadata.
*/
public interface MetadataStore<T> {
Map<String, String> getMetadata();
void setMetadata(Map<String, String> metadata);
MetadataStore<T> update(Map<String, Object> params) throws AuthenticationException, InvalidRequestException,
APIConnectionException, APIException;
MetadataStore<T> update(Map<String, Object> params, String apiKey) throws AuthenticationException, InvalidRequestException,
APIConnectionException, APIException;
}