Package io.netty.channel.pool
Class FixedChannelPool.AcquireListener
- java.lang.Object
-
- io.netty.channel.pool.FixedChannelPool.AcquireListener
-
- All Implemented Interfaces:
FutureListener<Channel>
,GenericFutureListener<Future<Channel>>
,java.util.EventListener
- Direct Known Subclasses:
FixedChannelPool.AcquireTask
- Enclosing class:
- FixedChannelPool
private class FixedChannelPool.AcquireListener extends java.lang.Object implements FutureListener<Channel>
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
acquired
private Promise<Channel>
originalPromise
-
Constructor Summary
Constructors Constructor Description AcquireListener(Promise<Channel> originalPromise)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acquired()
void
operationComplete(Future<Channel> future)
Invoked when the operation associated with theFuture
has been completed.
-
-
-
Method Detail
-
operationComplete
public void operationComplete(Future<Channel> future) throws java.lang.Exception
Description copied from interface:GenericFutureListener
Invoked when the operation associated with theFuture
has been completed.- Specified by:
operationComplete
in interfaceGenericFutureListener<Future<Channel>>
- Parameters:
future
- the sourceFuture
which called this callback- Throws:
java.lang.Exception
-
acquired
public void acquired()
-
-