-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use conditional GET request to download external mapping (#298)
- Loading branch information
1 parent
64691a7
commit f1d208e
Showing
5 changed files
with
144 additions
and
25 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
sawmill-core/src/main/java/io/logz/sawmill/http/ExternalMappingResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package io.logz.sawmill.http; | ||
|
||
import java.util.Map; | ||
|
||
public class ExternalMappingResponse { | ||
private final Long lastModified; | ||
private final Map<String, Iterable<String>> mappings; | ||
|
||
public ExternalMappingResponse(Long lastModified, Map<String, Iterable<String>> mappings) { | ||
this.lastModified = lastModified; | ||
this.mappings = mappings; | ||
} | ||
|
||
public boolean isModified() { | ||
return mappings != null; | ||
} | ||
|
||
public Long getLastModified() { | ||
return lastModified; | ||
} | ||
|
||
public Map<String, Iterable<String>> getMappings() { | ||
return mappings; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters