public class BootstrapAdapter
extends java.lang.Object
A wrapper for the IO Bootstrap
class.
This adapter is needed in order to properly mock the underlying Bootstrap
class, since it is a final class and can’t be tested properly otherwise.
Constructor and Description |
---|
BootstrapAdapter(io.netty.bootstrap.Bootstrap bootstrap)
Create a new
BootstrapAdapter . |
Modifier and Type | Method and Description |
---|---|
io.netty.channel.ChannelFuture |
connect()
Connect the underlying
Bootstrap and return a ChannelFuture . |
public BootstrapAdapter(io.netty.bootstrap.Bootstrap bootstrap)
Create a new BootstrapAdapter
.
bootstrap
- the wrapped bootstrap.