public class XnioChannelCloseFuture extends Object implements io.netty.channel.ChannelFuture, org.xnio.ChannelListener<org.xnio.conduits.ConduitStreamSourceChannel>
| Constructor and Description |
|---|
XnioChannelCloseFuture(org.xnio.netty.transport.AbstractXnioSocketChannel channel) |
| Modifier and Type | Method and Description |
|---|---|
io.netty.channel.ChannelFuture |
addListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener) |
io.netty.channel.ChannelFuture |
addListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>... listeners) |
io.netty.channel.ChannelFuture |
await() |
boolean |
await(long timeoutMillis) |
boolean |
await(long timeout,
TimeUnit unit) |
io.netty.channel.ChannelFuture |
awaitUninterruptibly() |
boolean |
awaitUninterruptibly(long timeoutMillis) |
boolean |
awaitUninterruptibly(long timeout,
TimeUnit unit) |
boolean |
cancel(boolean mayInterruptIfRunning) |
Throwable |
cause() |
io.netty.channel.Channel |
channel() |
Void |
get() |
Void |
get(long timeout,
TimeUnit unit) |
Void |
getNow() |
void |
handleEvent(org.xnio.conduits.ConduitStreamSourceChannel channel) |
boolean |
isCancellable() |
boolean |
isCancelled() |
boolean |
isDone() |
boolean |
isSuccess() |
boolean |
isVoid() |
io.netty.channel.ChannelFuture |
removeListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener) |
io.netty.channel.ChannelFuture |
removeListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>... listeners) |
void |
setError(IOException error) |
io.netty.channel.ChannelFuture |
sync() |
io.netty.channel.ChannelFuture |
syncUninterruptibly() |
public XnioChannelCloseFuture(org.xnio.netty.transport.AbstractXnioSocketChannel channel)
public void setError(IOException error)
public boolean isSuccess()
public boolean isCancellable()
public Throwable cause()
public boolean await(long timeout,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionpublic boolean await(long timeoutMillis)
throws InterruptedException
InterruptedExceptionpublic boolean awaitUninterruptibly(long timeout,
TimeUnit unit)
public boolean awaitUninterruptibly(long timeoutMillis)
public Void getNow()
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<Void>public Void get() throws InterruptedException, ExecutionException
get in interface Future<Void>InterruptedExceptionExecutionExceptionpublic Void get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<Void>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic io.netty.channel.Channel channel()
channel in interface io.netty.channel.ChannelFuturepublic io.netty.channel.ChannelFuture addListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener)
addListener in interface io.netty.channel.ChannelFuturepublic io.netty.channel.ChannelFuture addListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>... listeners)
addListeners in interface io.netty.channel.ChannelFuturepublic io.netty.channel.ChannelFuture removeListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener)
removeListener in interface io.netty.channel.ChannelFuturepublic io.netty.channel.ChannelFuture removeListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>... listeners)
removeListeners in interface io.netty.channel.ChannelFuturepublic io.netty.channel.ChannelFuture sync()
throws InterruptedException
sync in interface io.netty.channel.ChannelFutureInterruptedExceptionpublic io.netty.channel.ChannelFuture syncUninterruptibly()
syncUninterruptibly in interface io.netty.channel.ChannelFuturepublic io.netty.channel.ChannelFuture await()
throws InterruptedException
await in interface io.netty.channel.ChannelFutureInterruptedExceptionpublic io.netty.channel.ChannelFuture awaitUninterruptibly()
awaitUninterruptibly in interface io.netty.channel.ChannelFuturepublic boolean isVoid()
isVoid in interface io.netty.channel.ChannelFuturepublic void handleEvent(org.xnio.conduits.ConduitStreamSourceChannel channel)
handleEvent in interface org.xnio.ChannelListener<org.xnio.conduits.ConduitStreamSourceChannel>Copyright © 2013–2021 JBoss, a division of Red Hat. All rights reserved.