• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java HealthCheckResponseBuilder类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.eclipse.microprofile.health.HealthCheckResponseBuilder的典型用法代码示例。如果您正苦于以下问题:Java HealthCheckResponseBuilder类的具体用法?Java HealthCheckResponseBuilder怎么用?Java HealthCheckResponseBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

HealthCheckResponseBuilder类属于org.eclipse.microprofile.health包,在下文中一共展示了HealthCheckResponseBuilder类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: state

点赞 2

import org.eclipse.microprofile.health.HealthCheckResponseBuilder; //导入依赖的package包/类
@Override
public HealthCheckResponseBuilder state(boolean b) {
    if (b) {
        return up();
    } else {
        return down();
    }
}
 

开发者ID:hammock-project,
项目名称:hammock,
代码行数:9,
代码来源:HammockResponseBuilder.java

示例2: createResponseBuilder

点赞 2

import org.eclipse.microprofile.health.HealthCheckResponseBuilder; //导入依赖的package包/类
@Override
public HealthCheckResponseBuilder createResponseBuilder() {
    return new WildFlyResponseBuilder();
}
 

开发者ID:jmesnil,
项目名称:wildfly-microprofile-health,
代码行数:5,
代码来源:WildFlyResponseFactory.java

示例3: withData

点赞 2

import org.eclipse.microprofile.health.HealthCheckResponseBuilder; //导入依赖的package包/类
@Override
public HealthCheckResponseBuilder withData(String key, String value) {
    data.get(key).set(value);
    return this;
}
 

开发者ID:jmesnil,
项目名称:wildfly-microprofile-health,
代码行数:6,
代码来源:WildFlyResponseFactory.java

示例4: up

点赞 2

import org.eclipse.microprofile.health.HealthCheckResponseBuilder; //导入依赖的package包/类
@Override
public HealthCheckResponseBuilder up() {
    return state(true);
}
 

开发者ID:jmesnil,
项目名称:wildfly-microprofile-health,
代码行数:5,
代码来源:WildFlyResponseFactory.java

示例5: down

点赞 2

import org.eclipse.microprofile.health.HealthCheckResponseBuilder; //导入依赖的package包/类
@Override
public HealthCheckResponseBuilder down() {
    return state(false);
}
 

开发者ID:jmesnil,
项目名称:wildfly-microprofile-health,
代码行数:5,
代码来源:WildFlyResponseFactory.java

示例6: state

点赞 2

import org.eclipse.microprofile.health.HealthCheckResponseBuilder; //导入依赖的package包/类
@Override
public HealthCheckResponseBuilder state(boolean up) {
    this.state = up;
    return this;
}
 

开发者ID:jmesnil,
项目名称:wildfly-microprofile-health,
代码行数:6,
代码来源:WildFlyResponseFactory.java

示例7: call

点赞 2

import org.eclipse.microprofile.health.HealthCheckResponseBuilder; //导入依赖的package包/类
@Override
public HealthCheckResponse call() {
	HealthCheckResponseBuilder b = HealthCheckResponse.named(CouchAttendeeDAO.class.getSimpleName());
	return connected  ? b.up().build()  : b.down().build();
}
 

开发者ID:eclipse,
项目名称:microprofile-conference,
代码行数:6,
代码来源:CouchAttendeeDAO.java

示例8: call

点赞 2

import org.eclipse.microprofile.health.HealthCheckResponseBuilder; //导入依赖的package包/类
@Override
public HealthCheckResponse call() {
	HealthCheckResponseBuilder b = HealthCheckResponse.named(CouchSessionRatingDAO.class.getSimpleName());
	return connected  ? b.up().build()  : b.down().build();
}
 

开发者ID:eclipse,
项目名称:microprofile-conference,
代码行数:6,
代码来源:CouchSessionRatingDAO.java

示例9: createResponseBuilder

点赞 2

import org.eclipse.microprofile.health.HealthCheckResponseBuilder; //导入依赖的package包/类
@Override
public HealthCheckResponseBuilder createResponseBuilder() {
    return new BuilderImpl();
}
 

开发者ID:wildfly-swarm,
项目名称:wildfly-swarm,
代码行数:5,
代码来源:HealthResponseProvider.java

示例10: up

点赞 2

import org.eclipse.microprofile.health.HealthCheckResponseBuilder; //导入依赖的package包/类
public HealthCheckResponseBuilder up() {
    return state(true);
}
 

开发者ID:wildfly-swarm,
项目名称:wildfly-swarm,
代码行数:4,
代码来源:BuilderImpl.java

示例11: down

点赞 2

import org.eclipse.microprofile.health.HealthCheckResponseBuilder; //导入依赖的package包/类
public HealthCheckResponseBuilder down() {
    return state(false);
}
 

开发者ID:wildfly-swarm,
项目名称:wildfly-swarm,
代码行数:4,
代码来源:BuilderImpl.java

示例12: state

点赞 2

import org.eclipse.microprofile.health.HealthCheckResponseBuilder; //导入依赖的package包/类
@Override
public HealthCheckResponseBuilder state(boolean up) {
    this.state = up ? HealthCheckResponse.State.UP : HealthCheckResponse.State.DOWN;
    return this;
}
 

开发者ID:wildfly-swarm,
项目名称:wildfly-swarm,
代码行数:6,
代码来源:BuilderImpl.java

示例13: withData

点赞 2

import org.eclipse.microprofile.health.HealthCheckResponseBuilder; //导入依赖的package包/类
public HealthCheckResponseBuilder withData(String key, String value) {
    Map<String, Object> payload = getPayloadWrapper();
    payload.put(key, value);
    return this;
}
 

开发者ID:wildfly-swarm,
项目名称:wildfly-swarm,
代码行数:6,
代码来源:BuilderImpl.java

示例14: createResponseBuilder

点赞 2

import org.eclipse.microprofile.health.HealthCheckResponseBuilder; //导入依赖的package包/类
@Override
public HealthCheckResponseBuilder createResponseBuilder() {
    return new HammockResponseBuilder();
}
 

开发者ID:hammock-project,
项目名称:hammock,
代码行数:5,
代码来源:HammockHealthProvider.java

示例15: withData

点赞 2

import org.eclipse.microprofile.health.HealthCheckResponseBuilder; //导入依赖的package包/类
@Override
public HealthCheckResponseBuilder withData(String key, String value) {
    data.put(key, value);
    return this;
}
 

开发者ID:hammock-project,
项目名称:hammock,
代码行数:6,
代码来源:HammockResponseBuilder.java

示例16: up

点赞 2

import org.eclipse.microprofile.health.HealthCheckResponseBuilder; //导入依赖的package包/类
@Override
public HealthCheckResponseBuilder up() {
    this.state = HealthCheckResponse.State.UP;
    return this;
}
 

开发者ID:hammock-project,
项目名称:hammock,
代码行数:6,
代码来源:HammockResponseBuilder.java

示例17: down

点赞 2

import org.eclipse.microprofile.health.HealthCheckResponseBuilder; //导入依赖的package包/类
@Override
public HealthCheckResponseBuilder down() {
    this.state = HealthCheckResponse.State.DOWN;
    return this;
}
 

开发者ID:hammock-project,
项目名称:hammock,
代码行数:6,
代码来源:HammockResponseBuilder.java

示例18: createResponseBuilder

点赞 2

import org.eclipse.microprofile.health.HealthCheckResponseBuilder; //导入依赖的package包/类
@Produces
@Dependent
public HealthCheckResponseBuilder createResponseBuilder(InjectionPoint injectionPoint) {
    String name = injectionPoint.getMember().getDeclaringClass().getSimpleName();
    return new HammockResponseBuilder().name(name);
}
 

开发者ID:hammock-project,
项目名称:hammock,
代码行数:7,
代码来源:HammockHealthCDI.java

示例19: createResponseBuilder

点赞 1

import org.eclipse.microprofile.health.HealthCheckResponseBuilder; //导入依赖的package包/类
HealthCheckResponseBuilder createResponseBuilder(); 

开发者ID:eclipse,
项目名称:microprofile-health,
代码行数:2,
代码来源:HealthCheckResponseProvider.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)