public class AsyncTcpResponse extends Object implements com.netflix.client.IResponse
| 构造器和说明 |
|---|
AsyncTcpResponse(io.netty.channel.ChannelFuture future,
URI uri) |
AsyncTcpResponse(io.netty.channel.ChannelFuture future,
URI uri,
Callable<Boolean> closeAction) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
await() |
boolean |
await(long time,
TimeUnit unit) |
void |
close() |
Throwable |
getCause() |
Map<String,?> |
getHeaders() |
io.netty.channel.ChannelFuture |
getPayload() |
URI |
getRequestedURI() |
boolean |
hasPayload() |
boolean |
isSuccess() |
public AsyncTcpResponse(io.netty.channel.ChannelFuture future,
URI uri)
public io.netty.channel.ChannelFuture getPayload()
throws com.netflix.client.ClientException
getPayload 在接口中 com.netflix.client.IResponsecom.netflix.client.ClientExceptionpublic boolean hasPayload()
hasPayload 在接口中 com.netflix.client.IResponsepublic boolean isSuccess()
isSuccess 在接口中 com.netflix.client.IResponsepublic URI getRequestedURI()
getRequestedURI 在接口中 com.netflix.client.IResponsepublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionpublic Throwable getCause()
public void await()
throws InterruptedException
public boolean await(long time,
TimeUnit unit)
throws InterruptedException
Copyright © 2018. All rights reserved.