public interface ResourceHandler<T,V extends VisitableBuilder<T,V>>
Modifier and Type | Interface and Description |
---|---|
static class |
ResourceHandler.Key |
Modifier and Type | Method and Description |
---|---|
T |
create(okhttp3.OkHttpClient client,
Config config,
java.lang.String namespace,
T item)
Create the specified resource.
|
java.lang.Boolean |
delete(okhttp3.OkHttpClient client,
Config config,
java.lang.String namespace,
java.lang.Boolean cascading,
T item)
Delete the specified resource (if exists).
|
V |
edit(T item)
Edit the specified resource.
|
java.lang.String |
getApiVersion() |
java.lang.String |
getKind() |
T |
reload(okhttp3.OkHttpClient client,
Config config,
java.lang.String namespace,
T item)
Reload the specified resource (if exists).
|
T |
replace(okhttp3.OkHttpClient client,
Config config,
java.lang.String namespace,
T item)
Replace the specified resource.
|
T |
waitUntilCondition(okhttp3.OkHttpClient client,
Config config,
java.lang.String namespace,
T item,
java.util.function.Predicate<T> condition,
long amount,
java.util.concurrent.TimeUnit timeUnit) |
T |
waitUntilReady(okhttp3.OkHttpClient client,
Config config,
java.lang.String namespace,
T item,
long amount,
java.util.concurrent.TimeUnit timeUnit)
Waits until the specified resource is Ready.
|
Watch |
watch(okhttp3.OkHttpClient client,
Config config,
java.lang.String namespace,
T item,
java.lang.String resourceVersion,
Watcher<T> watcher)
Watches the specified resource for changes.
|
Watch |
watch(okhttp3.OkHttpClient client,
Config config,
java.lang.String namespace,
T item,
Watcher<T> watcher)
Watches the specified resource for changes.
|
java.lang.String getKind()
java.lang.String getApiVersion()
T create(okhttp3.OkHttpClient client, Config config, java.lang.String namespace, T item)
client
- An instance of the http client.config
- The client config.namespace
- The target namespace.item
- The resource to create.T replace(okhttp3.OkHttpClient client, Config config, java.lang.String namespace, T item)
client
- An instance of the http client.config
- The client config.namespace
- The target namespace.item
- The resource to replace.T reload(okhttp3.OkHttpClient client, Config config, java.lang.String namespace, T item)
client
- An instance of the http client.config
- The client config.namespace
- The target namespace.item
- The resource to reload.V edit(T item)
item
- The resource to edit.java.lang.Boolean delete(okhttp3.OkHttpClient client, Config config, java.lang.String namespace, java.lang.Boolean cascading, T item)
client
- An instance of the http client.config
- The client config.namespace
- The target namespace.cascading
- Whether deletion needs to be cascading or notitem
- The resource to delete.Watch watch(okhttp3.OkHttpClient client, Config config, java.lang.String namespace, T item, Watcher<T> watcher)
client
- An instance of the http client.config
- The client config.namespace
- The target namespace.item
- The resource to delete.watcher
- The Watcher
to use.Watch watch(okhttp3.OkHttpClient client, Config config, java.lang.String namespace, T item, java.lang.String resourceVersion, Watcher<T> watcher)
client
- An instance of the http client.config
- The client config.namespace
- The target namespace.item
- The resource to delete.resourceVersion
- The resourceVersion of objectwatcher
- The Watcher
to use.T waitUntilReady(okhttp3.OkHttpClient client, Config config, java.lang.String namespace, T item, long amount, java.util.concurrent.TimeUnit timeUnit) throws java.lang.InterruptedException
client
- An instance of the http client.config
- The client config.namespace
- The target namespace.item
- The resource to wait.amount
- The amount of time to waittimeUnit
- The wait TimeUnit
.java.lang.InterruptedException
- Interrupted ExceptionCopyright © 2015-2019 Red Hat. All Rights Reserved.