public class BootstrapAdapter extends Object
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)
BootstrapAdapter
.bootstrap
- the wrapped bootstrap.Copyright © 2019 Couchbase, Inc.. All rights reserved.