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.BootstrapBecause 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.bootstrappackage in order to access some methods ofBootstrapwhich have package access.
-
-
Constructor Summary
Constructors Modifier Constructor Description InstrumentedBootstrap(CallTracker connectCallTracker)protectedInstrumentedBootstrap(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.Bootstrapclone()io.netty.bootstrap.Bootstrapclone(io.netty.channel.EventLoopGroup group)io.netty.channel.ChannelFutureconnect()Connect aChannelto the remote peer.io.netty.channel.ChannelFutureconnect(java.net.SocketAddress remoteAddress)Connect aChannelto the remote peer.io.netty.channel.ChannelFutureconnect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress)Connect aChannelto 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 aChannelto the remote peer.- Overrides:
connectin classio.netty.bootstrap.Bootstrap
-
connect
public io.netty.channel.ChannelFuture connect(java.net.SocketAddress remoteAddress)
Connect aChannelto the remote peer.- Overrides:
connectin classio.netty.bootstrap.Bootstrap
-
connect
public io.netty.channel.ChannelFuture connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress)Connect aChannelto the remote peer.- Overrides:
connectin classio.netty.bootstrap.Bootstrap
-
clone
public io.netty.bootstrap.Bootstrap clone()
- Overrides:
clonein classio.netty.bootstrap.Bootstrap
-
clone
public io.netty.bootstrap.Bootstrap clone(io.netty.channel.EventLoopGroup group)
- Overrides:
clonein classio.netty.bootstrap.Bootstrap
-
-