Tabnine Logo
ClientSocketChannelFactory.releaseExternalResources
Code IndexAdd Tabnine to your IDE (free)

How to use
releaseExternalResources
method
in
org.jboss.netty.channel.socket.ClientSocketChannelFactory

Best Java code snippets using org.jboss.netty.channel.socket.ClientSocketChannelFactory.releaseExternalResources (Showing top 8 results out of 315)

origin: io.netty/netty

public void releaseExternalResources() {
  clientSocketChannelFactory.releaseExternalResources();
}
origin: twitter/distributedlog

  readerZKC.close();
channelFactory.releaseExternalResources();
LOG.info("Release external resources used by channel factory.");
requestTimer.stop();
origin: com.ning/async-http-client

public void close() {
  channelPool.destroy();
  openChannels.close();
  for (Channel channel : openChannels) {
    Object attribute = Channels.getAttribute(channel);
    if (attribute instanceof NettyResponseFuture<?>) {
      NettyResponseFuture<?> future = (NettyResponseFuture<?>) attribute;
      future.cancelTimeouts();
    }
  }
  // FIXME also shutdown in provider
  config.executorService().shutdown();
  if (allowReleaseSocketChannelFactory) {
    socketChannelFactory.releaseExternalResources();
    plainBootstrap.releaseExternalResources();
    secureBootstrap.releaseExternalResources();
    webSocketBootstrap.releaseExternalResources();
    secureWebSocketBootstrap.releaseExternalResources();
  }
}
origin: normanmaurer/niosmtp

@Override
public void destroy() {
  timer.stop();
  channelGroup.close().awaitUninterruptibly();
  factory.releaseExternalResources();
}
origin: org.hornetq/hornetq-core

public synchronized void close()
{
 if (channelFactory == null)
 {
   return;
 }
 
 if (batchFlusherFuture != null)
 {
   batchFlusherFuture.cancel(false);
      flusher.cancel();
      flusher = null;
      batchFlusherFuture = null;
 }
 bootstrap = null;
 channelGroup.close().awaitUninterruptibly();
 channelFactory.releaseExternalResources();
 channelFactory = null;
 for (Connection connection : connections.values())
 {
   listener.connectionDestroyed(connection.getID());
 }
 connections.clear();
}
origin: org.asynchttpclient/async-http-client-netty3

public void close() {
  channelPool.destroy();
  openChannels.close();
  for (Channel channel : openChannels) {
    Object attribute = Channels.getAttribute(channel);
    if (attribute instanceof NettyResponseFuture<?>) {
      NettyResponseFuture<?> future = (NettyResponseFuture<?>) attribute;
      future.cancelTimeouts();
    }
  }
  // FIXME also shutdown in provider
  config.getExecutorService().shutdown();
  if (allowReleaseSocketChannelFactory) {
    socketChannelFactory.releaseExternalResources();
    httpBootstrap.releaseExternalResources();
    wsBootstrap.releaseExternalResources();
  }
}
origin: org.asynchttpclient/async-http-client-netty3-provider

public void close() {
  channelPool.destroy();
  openChannels.close();
  for (Channel channel : openChannels) {
    Object attribute = Channels.getAttribute(channel);
    if (attribute instanceof NettyResponseFuture<?>) {
      NettyResponseFuture<?> future = (NettyResponseFuture<?>) attribute;
      future.cancelTimeouts();
    }
  }
  // FIXME also shutdown in provider
  config.executorService().shutdown();
  if (allowReleaseSocketChannelFactory) {
    socketChannelFactory.releaseExternalResources();
    plainBootstrap.releaseExternalResources();
    secureBootstrap.releaseExternalResources();
    webSocketBootstrap.releaseExternalResources();
    secureWebSocketBootstrap.releaseExternalResources();
  }
}
origin: io.gatling/async-http-client

public void close() {
  channelPool.destroy();
  openChannels.close();
  for (Channel channel : openChannels) {
    Object attribute = Channels.getAttribute(channel);
    if (attribute instanceof NettyResponseFuture<?>) {
      NettyResponseFuture<?> future = (NettyResponseFuture<?>) attribute;
      future.cancelTimeouts();
    }
  }
  // FIXME also shutdown in provider
  config.executorService().shutdown();
  if (allowReleaseSocketChannelFactory) {
    socketChannelFactory.releaseExternalResources();
    plainBootstrap.releaseExternalResources();
    secureBootstrap.releaseExternalResources();
    webSocketBootstrap.releaseExternalResources();
    secureWebSocketBootstrap.releaseExternalResources();
  }
}
org.jboss.netty.channel.socketClientSocketChannelFactoryreleaseExternalResources

Popular methods of ClientSocketChannelFactory

  • newChannel
  • shutdown

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Collectors (java.util.stream)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Join (org.hibernate.mapping)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now