String newResourceVersion = list.getMetadata().getResourceVersion(); if (currentResourceVersion == null || currentResourceVersion.compareTo(newResourceVersion) < 0) { resourceVersion.compareAndSet(currentResourceVersion, newResourceVersion);
public ListMetaBuilder( ListMetaFluent<?> fluent ){ this(fluent, new ListMeta()); } public ListMetaBuilder( ListMetaFluent<?> fluent , ListMeta instance ){
public boolean equals(Object o){ if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; PolicyListFluentImpl that = (PolicyListFluentImpl) o; if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; if (items != null ? !items.equals(that.items) :that.items != null) return false; if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; }
public ListMetaBuilder(ListMetaFluent<?> fluent,ListMeta instance,Boolean validationEnabled){ this.fluent = fluent; fluent.withResourceVersion(instance.getResourceVersion()); fluent.withSelfLink(instance.getSelfLink()); this.validationEnabled = validationEnabled; } public ListMetaBuilder(ListMeta instance){
podList.getItems().forEach((obj) -> { System.out.println(obj.getMetadata().getName()); }); podList = client.pods().inNamespace("myproject").list(5, podList.getMetadata().getContinue()); podList.getItems().forEach((obj) -> { System.out.println(obj.getMetadata().getName()); });
public ListMetaBuilder(ListMeta instance,Boolean validationEnabled){ this.fluent = this; this.withResourceVersion(instance.getResourceVersion()); this.withSelfLink(instance.getSelfLink()); this.validationEnabled = validationEnabled; }
public ListMetaBuilder( ListMetaFluent<?> fluent ){ this(fluent, new ListMeta()); } public ListMetaBuilder( ListMetaFluent<?> fluent , ListMeta instance ){
public ListMetaBuilder( ListMetaFluent<?> fluent , ListMeta instance ){ this.fluent = fluent; fluent.withResourceVersion(instance.getResourceVersion()); fluent.withSelfLink(instance.getSelfLink()); } public ListMetaBuilder( ListMeta instance ){
resourceVersion.set(list.getMetadata().getResourceVersion()); Watcher.Action action = Watcher.Action.valueOf(event.getType()); List<HasMetadata> items = list.getItems();
public boolean equals(Object o){ if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; DestinationRuleListFluentImpl that = (DestinationRuleListFluentImpl) o; if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; if (items != null ? !items.equals(that.items) :that.items != null) return false; if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; }
public ListMetaBuilder(ListMetaFluent<?> fluent,Boolean validationEnabled){ this(fluent, new ListMeta(), validationEnabled); } public ListMetaBuilder(ListMetaFluent<?> fluent,ListMeta instance){
public ListMetaFluentImpl(ListMeta instance){ this.withResourceVersion(instance.getResourceVersion()); this.withSelfLink(instance.getSelfLink()); }
public WatchConnectionManager(final OkHttpClient client, final BaseOperation<T, L, ?, ?> baseOperation, final String version, final Watcher<T> watcher, final int reconnectInterval, final int reconnectLimit, long websocketTimeout) throws MalformedURLException { if (version == null) { L currentList = baseOperation.list(); this.resourceVersion = new AtomicReference<>(currentList.getMetadata().getResourceVersion()); } else { this.resourceVersion = new AtomicReference<>(version); } this.baseOperation = baseOperation; this.watcher = watcher; this.reconnectInterval = reconnectInterval; this.reconnectLimit = reconnectLimit; this.websocketTimeout = websocketTimeout; this.clonedClient = client.newBuilder().readTimeout(this.websocketTimeout, TimeUnit.MILLISECONDS).build(); // The URL is created, validated and saved once, so that reconnect attempts don't have to deal with // MalformedURLExceptions that would never occur requestUrl = baseOperation.getNamespacedUrl(); runWatch(); }
public boolean equals(Object o){ if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; StdioListFluentImpl that = (StdioListFluentImpl) o; if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; if (items != null ? !items.equals(that.items) :that.items != null) return false; if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; }
public ListMetaBuilder(){ this(new ListMeta()); } public ListMetaBuilder( ListMetaFluent<?> fluent ){
public ListMetaBuilder( ListMetaFluent<?> fluent , ListMeta instance ){ this.fluent = fluent; fluent.withResourceVersion(instance.getResourceVersion()); fluent.withSelfLink(instance.getSelfLink()); } public ListMetaBuilder( ListMeta instance ){
this.resourceVersion = new AtomicReference<>(currentList.getMetadata().getResourceVersion()); } else { this.resourceVersion = new AtomicReference<>(version);
public boolean equals(Object o){ if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; CheckNothingListFluentImpl that = (CheckNothingListFluentImpl) o; if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false; if (items != null ? !items.equals(that.items) :that.items != null) return false; if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false; if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false; return true; }
public T withNewMetadata( String resourceVersion, String selfLink){ return withMetadata(new ListMeta(resourceVersion, selfLink)); } public T addToAdditionalProperties( String key, Object value){
public ListMetaBuilder( ListMeta instance ){ this.fluent = this; this.withResourceVersion(instance.getResourceVersion()); this.withSelfLink(instance.getSelfLink()); }