Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Commit

Permalink
Merge pull request #180 from pettermahlen/clarify-unimplemented-metadata
Browse files Browse the repository at this point in the history
clarify unimplemented RequestContext metadata
  • Loading branch information
pettermahlen committed Nov 16, 2016
2 parents e2aa146 + 6ea740c commit 5518f38
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions apollo-api/src/main/java/com/spotify/apollo/RequestContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,21 +81,6 @@ default long arrivalTimeNanos() {
* Returns the metadata available for this request.
*/
default RequestMetadata metadata() {
return new RequestMetadata() {
@Override
public Instant arrivalTime() {
return Instant.EPOCH;
}

@Override
public Optional<HostAndPort> localAddress() {
return Optional.empty();
}

@Override
public Optional<HostAndPort> remoteAddress() {
return Optional.empty();
}
};
throw new UnsupportedOperationException("If you implement a RequestContext, you must override this method");
}
}

0 comments on commit 5518f38

Please sign in to comment.