Package io.netty.bootstrap
Class InstrumentedBootstrap
- java.lang.Object
-
- io.netty.bootstrap.AbstractBootstrap<io.netty.bootstrap.Bootstrap,io.netty.channel.Channel>
-
- io.netty.bootstrap.Bootstrap
-
- io.netty.bootstrap.InstrumentedBootstrap
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
ResolveAllBootstrap
public class InstrumentedBootstrap extends io.netty.bootstrap.Bootstrap
Because various netty methods and classes have been declared asfinal
, we construct this pile of foo in order to be able to instrument the connect() method invocation. This class is in theio.netty.bootstrap
package in order to access some methods ofBootstrap
which have package access.
-
-
Constructor Summary
Constructors Modifier Constructor Description InstrumentedBootstrap(CallTracker connectCallTracker)
protected
InstrumentedBootstrap(InstrumentedBootstrap old)
InstrumentedBootstrap(java.util.function.Function<java.net.SocketAddress,CallTracker> connectCallTracker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.bootstrap.Bootstrap
clone()
io.netty.bootstrap.Bootstrap
clone(io.netty.channel.EventLoopGroup group)
io.netty.channel.ChannelFuture
connect()
Connect aChannel
to the remote peer.io.netty.channel.ChannelFuture
connect(java.net.SocketAddress remoteAddress)
Connect aChannel
to the remote peer.io.netty.channel.ChannelFuture
connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress)
Connect aChannel
to the remote peer.-
Methods inherited from class io.netty.bootstrap.Bootstrap
config, connect, connect, remoteAddress, remoteAddress, remoteAddress, resolver, validate
-
-
-
-
Constructor Detail
-
InstrumentedBootstrap
public InstrumentedBootstrap(@Nonnull CallTracker connectCallTracker)
-
InstrumentedBootstrap
public InstrumentedBootstrap(@Nonnull java.util.function.Function<java.net.SocketAddress,CallTracker> connectCallTracker)
-
InstrumentedBootstrap
protected InstrumentedBootstrap(InstrumentedBootstrap old)
-
-
Method Detail
-
connect
public io.netty.channel.ChannelFuture connect()
Connect aChannel
to the remote peer.- Overrides:
connect
in classio.netty.bootstrap.Bootstrap
-
connect
public io.netty.channel.ChannelFuture connect(java.net.SocketAddress remoteAddress)
Connect aChannel
to the remote peer.- Overrides:
connect
in classio.netty.bootstrap.Bootstrap
-
connect
public io.netty.channel.ChannelFuture connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress)
Connect aChannel
to the remote peer.- Overrides:
connect
in classio.netty.bootstrap.Bootstrap
-
clone
public io.netty.bootstrap.Bootstrap clone()
- Overrides:
clone
in classio.netty.bootstrap.Bootstrap
-
clone
public io.netty.bootstrap.Bootstrap clone(io.netty.channel.EventLoopGroup group)
- Overrides:
clone
in classio.netty.bootstrap.Bootstrap
-
-