Delta<?> delta = new Builder() .withId(lastInstanceInfo.getId()) .withVersion(lastInstanceInfo.getVersion()) .withDelta(field, value) .build(); lastInstanceInfo = lastInstanceInfo.applyDelta(delta);
public <T> com.netflix.eureka2.registry.Delta<T> build() { return (Delta<T>) builder().build(); }
@Override public Builder builder() { return newBuilder().withDelta(InstanceInfoField.STATUS, Status.UP); } },
@Override public Builder builder() { return newBuilder().withDelta(InstanceInfoField.STATUS, Status.DOWN); } };
Builder newBuilder() { return new Builder() .withId(this.baseInstanceInfo.getId()) .withVersion(this.baseInstanceInfo.getVersion() + 1); } }