Skip to content

Commit

Permalink
Add NoneHealthResponder to replace default responder
Browse files Browse the repository at this point in the history
  • Loading branch information
eager-signal committed Nov 27, 2023
1 parent a74438d commit 5f6fe4d
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright 2023 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/

package org.whispersystems.textsecuregcm.dropwizard.health;

import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.dropwizard.health.HealthEnvironment;
import io.dropwizard.health.response.HealthResponderFactory;
import io.dropwizard.health.response.HealthResponseProvider;
import io.dropwizard.jersey.setup.JerseyEnvironment;
import io.dropwizard.jetty.setup.ServletEnvironment;
import java.util.Collection;

@JsonTypeName("none")
public class NoneHealthResponder implements HealthResponderFactory {

@Override
public void configure(final String name, final Collection<String> healthCheckUrlPaths,
final HealthResponseProvider healthResponseProvider, final HealthEnvironment health,
final JerseyEnvironment jersey, final ServletEnvironment servlets, final ObjectMapper mapper) {
// do nothing
}
}

0 comments on commit 5f6fe4d

Please sign in to comment.