Class BootstrapAdapter
- java.lang.Object
-
- com.couchbase.client.core.endpoint.BootstrapAdapter
-
public class BootstrapAdapter extends Object
-
-
Constructor Summary
Constructors Constructor Description BootstrapAdapter(Bootstrap bootstrap)
Create a newBootstrapAdapter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelFuture
connect()
Connect the underlyingBootstrap
and return aChannelFuture
.BootstrapAdapter
remoteAddress(String hostname, int port)
-
-
-
Constructor Detail
-
BootstrapAdapter
public BootstrapAdapter(Bootstrap bootstrap)
Create a newBootstrapAdapter
.- Parameters:
bootstrap
- the wrapped bootstrap.
-
-
Method Detail
-
connect
public ChannelFuture connect()
Connect the underlyingBootstrap
and return aChannelFuture
.- Returns:
- the future containing the channel and connect status.
-
remoteAddress
public BootstrapAdapter remoteAddress(String hostname, int port)
-
-