public class LogWatchCallback extends Object implements LogWatch, AutoCloseable, BiConsumer<HttpResponse<InputStream>,Throwable>
| Constructor and Description |
|---|
LogWatchCallback(Config config,
OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(HttpResponse<InputStream> t,
Throwable u) |
LogWatchCallback |
callAndWait(HttpClient client,
URL url) |
void |
close()
Close the Watch.
|
InputStream |
getOutput()
Returns the
InputStream for the log watch. |
void |
onFailure(Throwable u) |
void |
onResponse(HttpResponse<InputStream> response) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThenpublic LogWatchCallback(Config config, OutputStream out)
public void close()
LogWatchpublic LogWatchCallback callAndWait(HttpClient client, URL url)
public InputStream getOutput()
LogWatchInputStream for the log watch.
If an OutputStream was passed in, will be nullgetOutput in interface LogWatchInputStreampublic void accept(HttpResponse<InputStream> t, Throwable u)
accept in interface BiConsumer<HttpResponse<InputStream>,Throwable>public void onFailure(Throwable u)
public void onResponse(HttpResponse<InputStream> response)
Copyright © 2015–2022 Red Hat. All rights reserved.