Class 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 as final, we construct this pile of foo in order to be able to instrument the connect() method invocation. This class is in the io.netty.bootstrap package in order to access some methods of Bootstrap which have package access.
    • 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 a Channel to the remote peer.
      io.netty.channel.ChannelFuture connect​(java.net.SocketAddress remoteAddress)
      Connect a Channel to the remote peer.
      io.netty.channel.ChannelFuture connect​(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress)
      Connect a Channel to the remote peer.
      • Methods inherited from class io.netty.bootstrap.Bootstrap

        config, connect, connect, remoteAddress, remoteAddress, remoteAddress, resolver, validate
      • Methods inherited from class io.netty.bootstrap.AbstractBootstrap

        attr, bind, bind, bind, bind, bind, channel, channelFactory, channelFactory, group, group, handler, localAddress, localAddress, localAddress, localAddress, option, register, toString
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InstrumentedBootstrap

        public InstrumentedBootstrap​(@Nonnull
                                     CallTracker connectCallTracker)
      • InstrumentedBootstrap

        public InstrumentedBootstrap​(@Nonnull
                                     java.util.function.Function<java.net.SocketAddress,​CallTracker> connectCallTracker)
    • Method Detail

      • connect

        public io.netty.channel.ChannelFuture connect()
        Connect a Channel to the remote peer.
        Overrides:
        connect in class io.netty.bootstrap.Bootstrap
      • connect

        public io.netty.channel.ChannelFuture connect​(java.net.SocketAddress remoteAddress)
        Connect a Channel to the remote peer.
        Overrides:
        connect in class io.netty.bootstrap.Bootstrap
      • connect

        public io.netty.channel.ChannelFuture connect​(java.net.SocketAddress remoteAddress,
                                                      java.net.SocketAddress localAddress)
        Connect a Channel to the remote peer.
        Overrides:
        connect in class io.netty.bootstrap.Bootstrap
      • clone

        public io.netty.bootstrap.Bootstrap clone()
        Overrides:
        clone in class io.netty.bootstrap.Bootstrap
      • clone

        public io.netty.bootstrap.Bootstrap clone​(io.netty.channel.EventLoopGroup group)
        Overrides:
        clone in class io.netty.bootstrap.Bootstrap