Skip to content

Commit

Permalink
Example with protostream marshalling fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
karesti committed Dec 13, 2024
1 parent d2378e8 commit d2fc95c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.infinispan.configuration.cache.CacheMode;
import org.infinispan.configuration.cache.Configuration;
import org.infinispan.configuration.cache.ConfigurationBuilder;
import org.infinispan.health.ClusterHealth;
import org.infinispan.manager.EmbeddedCacheManager;

import io.quarkus.logging.Log;
Expand All @@ -37,6 +38,11 @@ void init() {
.getOrCreateCache(CACHE_NAME, config);
}

@GET
public ClusterHealth clusterHealth() {
return cacheManager.getHealth().getClusterHealth();
}

@POST
@Path("/{id}")
public CompletionStage<String> postGreeting(String id, Greeting greeting) {
Expand Down

0 comments on commit d2fc95c

Please sign in to comment.