Deprecated
Use TcpClient methods for configurations. This class will be removed in version 1.1.0.
TcpClient#bootstrap(Function) in 0.9.x.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public <T> Bootstrap | attr(AttributeKey<T> key, T value)
Overrides io. Channel.
|
| public ChannelFuture | |
| public ChannelFuture | bind(InetAddress inetHost, int inetPort)
Overrides io. Channel and bind it.
|
| public ChannelFuture | bind(int inetPort)
Overrides io. Channel and bind it.
|
| public ChannelFuture | bind(SocketAddress localAddress)
Overrides io. Channel and bind it.
|
| public ChannelFuture | bind(String inetHost, int inetPort)
Overrides io. Channel and bind it.
|
| public Bootstrap | |
| public Bootstrap | channelFactory(ChannelFactory<? extends Channel> channelFactory)
Overrides io.
Deprecated
as a consequence of
ChannelFactory being deprecated.
|
| public Bootstrap | channelFactory(ChannelFactory<? extends Channel> channelFactory)
Overrides io.
Deprecated
as a consequence of
ChannelFactory being deprecated.
io. which is used to create Channel instances from
when calling bind().
|
| public Bootstrap | clone()
Overrides io. |
| public Bootstrap | clone(EventLoopGroup group)
Overrides io. EventLoopGroup.
|
| public ChannelFuture | |
| public ChannelFuture | connect(InetAddress inetHost, int inetPort)
Overrides io. Channel to the remote peer.
|
| public ChannelFuture | connect(SocketAddress remoteAddress)
Overrides io. Channel to the remote peer.
|
| public ChannelFuture | connect(SocketAddress remoteAddress, SocketAddress localAddress)
Overrides io. Channel to the remote peer.
|
| public ChannelFuture | connect(String inetHost, int inetPort)
Overrides io. Channel to the remote peer.
|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| protected void | finalize()
Overrides java. |
| public Bootstrap | group(EventLoopGroup group)
Overrides io. EventLoopGroup which is used to handle all the events for the to-be-created
Channel
|
| public Bootstrap | handler(ChannelHandler handler)
Overrides io. ChannelHandler to use for serving the requests.
|
| public int | |
| public Bootstrap | localAddress(InetAddress inetHost, int inetPort)
Overrides io. |
| public Bootstrap | |
| public Bootstrap | localAddress(SocketAddress localAddress)
Overrides io. SocketAddress which is used to bind the local "end" to.
|
| public Bootstrap | localAddress(String inetHost, int inetPort)
Overrides io. |
| public <T> Bootstrap | option(ChannelOption<T> option, T value)
Overrides io. ChannelOption which is used for the Channel instances once they got
created.
|
| public ChannelFuture | register()
Overrides io. Channel and register it with an EventLoop.
|
| public Bootstrap | remoteAddress(InetAddress inetHost, int inetPort)
Overrides io. |
| public Bootstrap | remoteAddress(SocketAddress remoteAddress)
Overrides io. SocketAddress to connect to once the connect() method
is called.
|
| public Bootstrap | |
| public Bootstrap | resolver(AddressResolverGroup<?> resolver)
Overrides io. NameResolver which will resolve the address of the unresolved named address.
|
| public String | toString()
Returns a string representation of the object.
|
| public Bootstrap |
| tcpClient | back to summary |
|---|---|
| pack-priv TcpClient tcpClient | |
| TcpClientBootstrap | back to summary |
|---|---|
| pack-priv TcpClientBootstrap(TcpClient tcpClient) | |
| attr | back to summary |
|---|---|
| public <T> Bootstrap attr(AttributeKey<T> key, T value) Overrides io. Doc from io. Allow to specify an initial attribute of the newly created
| |
| bind | back to summary |
|---|---|
| public ChannelFuture bind() Overrides io. Doc from io. Create a new
| |
| bind | back to summary |
|---|---|
| public ChannelFuture bind(InetAddress inetHost, int inetPort) Overrides io. Doc from io. Create a new
| |
| bind | back to summary |
|---|---|
| public ChannelFuture bind(int inetPort) Overrides io. Doc from io. Create a new
| |
| bind | back to summary |
|---|---|
| public ChannelFuture bind(SocketAddress localAddress) Overrides io. Doc from io. Create a new
| |
| bind | back to summary |
|---|---|
| public ChannelFuture bind(String inetHost, int inetPort) Overrides io. Doc from io. Create a new
| |
| channel | back to summary |
|---|---|
| public Bootstrap channel(Class<? extends Channel> channelClass) Overrides io. Doc from io. The
| |
| channelFactory | back to summary |
|---|---|
| public Bootstrap channelFactory(ChannelFactory<? extends Channel> channelFactory) Overrides io. Deprecated as a consequence of
| |
| channelFactory | back to summary |
|---|---|
| public Bootstrap channelFactory(ChannelFactory<? extends Channel> channelFactory) Overrides io. Doc from io. Deprecated as a consequence of
| |
| clone | back to summary |
|---|---|
| public Bootstrap clone() Overrides io. Doc from io. Returns a deep clone of this bootstrap which has the identical configuration. This method is useful when making
multiple
| |
| clone | back to summary |
|---|---|
| public Bootstrap clone(EventLoopGroup group) Overrides io. Doc from io. Returns a deep clone of this bootstrap which has the identical configuration except that it uses
the given
| |
| connect | back to summary |
|---|---|
| public ChannelFuture connect() Overrides io. Doc from io. Connect a
| |
| connect | back to summary |
|---|---|
| public ChannelFuture connect(InetAddress inetHost, int inetPort) Overrides io. Doc from io. Connect a
| |
| connect | back to summary |
|---|---|
| public ChannelFuture connect(SocketAddress remoteAddress) Overrides io. Doc from io. Connect a
| |
| connect | back to summary |
|---|---|
| public ChannelFuture connect(SocketAddress remoteAddress, SocketAddress localAddress) Overrides io. Doc from io. Connect a
| |
| connect | back to summary |
|---|---|
| public ChannelFuture connect(String inetHost, int inetPort) Overrides io. Doc from io. Connect a
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| finalize | back to summary |
|---|---|
| protected void finalize() Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the
| |
| group | back to summary |
|---|---|
| public Bootstrap group(EventLoopGroup group) Overrides io. Doc from io. The
| |
| handler | back to summary |
|---|---|
| public Bootstrap handler(ChannelHandler handler) Overrides io. Doc from io. the
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| localAddress | back to summary |
|---|---|
| public Bootstrap localAddress(InetAddress inetHost, int inetPort) Overrides io.
| |
| localAddress | back to summary |
|---|---|
| public Bootstrap localAddress(int inetPort) Overrides io.
| |
| localAddress | back to summary |
|---|---|
| public Bootstrap localAddress(SocketAddress localAddress) Overrides io. Doc from io. The
| |
| localAddress | back to summary |
|---|---|
| public Bootstrap localAddress(String inetHost, int inetPort) Overrides io.
| |
| option | back to summary |
|---|---|
| public <T> Bootstrap option(ChannelOption<T> option, T value) Overrides io. Doc from io. Allow to specify a
| |
| register | back to summary |
|---|---|
| public ChannelFuture register() Overrides io. Doc from io. Create a new
| |
| remoteAddress | back to summary |
|---|---|
| public Bootstrap remoteAddress(InetAddress inetHost, int inetPort) Overrides io.
| |
| remoteAddress | back to summary |
|---|---|
| public Bootstrap remoteAddress(SocketAddress remoteAddress) Overrides io. Doc from io. The
| |
| remoteAddress | back to summary |
|---|---|
| public Bootstrap remoteAddress(String inetHost, int inetPort) Overrides io.
| |
| resolver | back to summary |
|---|---|
| public Bootstrap resolver(AddressResolverGroup<?> resolver) Overrides io. Doc from io. Sets the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides io. Doc from java. Returns a string representation of the object. | |
| validate | back to summary |
|---|---|
| public Bootstrap validate() Overrides io. Doc from io. Validate all the parameters. Sub-classes may override this, but should call the super method in that case.
| |