dummyClient.withResourceVersion(created.getMetadata().getResourceVersion()).watch(new Watcher<Dummy>() { @Override public void eventReceived(Action action, Dummy resource) {
try (Watch watch = client.replicationControllers().inNamespace("thisisatest").withResourceVersion("0").watch(new Watcher<ReplicationController>() { @Override public void eventReceived(Action action, ReplicationController resource) {
@Override public io.fabric8.kubernetes.client.Watch watch(io.fabric8.kubernetes.client.Watcher<AddressPlan> watcher, ListOptions listOptions) { RequestConfig requestConfig = new RequestConfigBuilder() .withRequestTimeout(listOptions.getTimeoutSeconds()) .build(); return client.withRequestConfig(requestConfig).call(c -> c.customResources(addressSpacePlanDefinition, AddressPlan.class, AddressPlanList.class, DoneableAddressPlan.class).inNamespace(namespace).withResourceVersion(listOptions.getResourceVersion()).watch(watcher)); }
@Override public io.fabric8.kubernetes.client.Watch watch(io.fabric8.kubernetes.client.Watcher<StandardInfraConfig> watcher, ListOptions listOptions) { RequestConfig requestConfig = new RequestConfigBuilder() .withRequestTimeout(listOptions.getTimeoutSeconds()) .build(); return client.withRequestConfig(requestConfig).call(c -> c.customResources(addressSpacePlanDefinition, StandardInfraConfig.class, StandardInfraConfigList.class, DoneableStandardInfraConfig.class).inNamespace(namespace).withResourceVersion(listOptions.getResourceVersion()).watch(watcher)); }
@Override public io.fabric8.kubernetes.client.Watch watch(io.fabric8.kubernetes.client.Watcher<AddressSpacePlan> watcher, ListOptions listOptions) { RequestConfig requestConfig = new RequestConfigBuilder() .withRequestTimeout(listOptions.getTimeoutSeconds()) .build(); return client.withRequestConfig(requestConfig).call(c -> c.customResources(addressSpacePlanDefinition, AddressSpacePlan.class, AddressSpacePlanList.class, DoneableAddressSpacePlan.class).inNamespace(namespace).withResourceVersion(listOptions.getResourceVersion()).watch(watcher)); }
@Override public io.fabric8.kubernetes.client.Watch watch(io.fabric8.kubernetes.client.Watcher<BrokeredInfraConfig> watcher, ListOptions listOptions) { RequestConfig requestConfig = new RequestConfigBuilder() .withRequestTimeout(listOptions.getTimeoutSeconds()) .build(); return client.withRequestConfig(requestConfig).call(c -> c.customResources(addressSpacePlanDefinition, BrokeredInfraConfig.class, BrokeredInfraConfigList.class, DoneableBrokeredInfraConfig.class).inNamespace(namespace).withResourceVersion(listOptions.getResourceVersion()).watch(watcher)); }