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, wait
andThen
public LogWatchCallback(Config config, OutputStream out)
public void close()
LogWatch
public LogWatchCallback callAndWait(HttpClient client, URL url)
public InputStream getOutput()
LogWatch
InputStream
for the log watch.
If an OutputStream
was passed in, will be nullgetOutput
in interface LogWatch
InputStream
public 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–2020 Red Hat. All rights reserved.