Skip to content

Commit

Permalink
ElasticSearch Dev Services container now only restarts on configurati…
Browse files Browse the repository at this point in the history
…on change in dev mode.

Fixes #30384
  • Loading branch information
apatrida authored and gsmet committed Jan 18, 2023
1 parent 79054ba commit aa11333
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.quarkus.elasticsearch.restclient.common.deployment;

import java.util.Objects;
import java.util.Optional;

import io.quarkus.runtime.annotations.ConfigItem;
Expand Down Expand Up @@ -65,4 +66,24 @@ public class ElasticsearchDevServicesBuildTimeConfig {
*/
@ConfigItem(defaultValue = "elasticsearch")
public String serviceName;

@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClass() != o.getClass())
return false;
ElasticsearchDevServicesBuildTimeConfig that = (ElasticsearchDevServicesBuildTimeConfig) o;
return Objects.equals(shared, that.shared)
&& Objects.equals(enabled, that.enabled)
&& Objects.equals(port, that.port)
&& Objects.equals(imageName, that.imageName)
&& Objects.equals(javaOpts, that.javaOpts)
&& Objects.equals(serviceName, that.serviceName);
}

@Override
public int hashCode() {
return Objects.hash(enabled, port, imageName, javaOpts, shared, serviceName);
}
}

0 comments on commit aa11333

Please sign in to comment.