Tabnine Logo
ClientBootstrap.shutdown
Code IndexAdd Tabnine to your IDE (free)

How to use
shutdown
method
in
org.jboss.netty.bootstrap.ClientBootstrap

Best Java code snippets using org.jboss.netty.bootstrap.ClientBootstrap.shutdown (Showing top 5 results out of 315)

origin: NetApp/NetApp-Hadoop-NFS-Connector

public void shutdown() {
 long start = System.currentTimeMillis();
 try {
  shutdown.set(true);
  future.getChannel().close();
  future.getChannel().getCloseFuture().awaitUninterruptibly();
  bootstrap.shutdown();
 } finally {
  bootstrap.releaseExternalResources();
  LOG.debug("RpcClient shutdown took " + (System.currentTimeMillis() - start) + " ms");
 }
}
origin: ShifuML/guagua

/**
 * Clean up resources used
 */
protected void cleanup() {
  if(this.rpcClient != null) {
    this.rpcClient.shutdown();
    this.rpcClient.releaseExternalResources();
  }
  if(this.rpcClientChannel != null) {
    this.rpcClientChannel.close();
  }
  this.getGuaguaService().stop();
}
origin: ml.shifu/guagua-yarn

/**
 * Clean up resources used
 */
protected void cleanup() {
  if(this.rpcClient != null) {
    this.rpcClient.shutdown();
    this.rpcClient.releaseExternalResources();
  }
  if(this.rpcClientChannel != null) {
    this.rpcClientChannel.close();
  }
  this.getGuaguaService().stop();
}
origin: io.libraft/libraft-agent

client.shutdown();
origin: projectodd/stilts

public void disconnect(long waitTime) throws InterruptedException, TimeoutException, StompException {
  setConnectionState( State.DISCONNECTING );
  try {
    this.channel.close();
    waitForDisconnected( waitTime );
  } finally {
    try {
      if (this.channel.isConnected()) {
        this.channel.disconnect().await( waitTime );
      }
    } finally {
      if (this.destroyExecutor) {
        if (this.executor instanceof ExecutorService) {
          ((ExecutorService) this.executor).shutdown();
        }
        this.executor = null;
        this.destroyExecutor = false;
      }
    }
  }
  this.bootstrap.shutdown();
  this.bootstrap.releaseExternalResources();
  this.bootstrap = null;
}
org.jboss.netty.bootstrapClientBootstrapshutdown

Popular methods of ClientBootstrap

  • connect
    Attempts a new connection with the specified remoteAddress and the specified localAddress. If the sp
  • <init>
    Creates a new instance with the specified initial ChannelFactory.
  • setPipelineFactory
  • setOption
  • releaseExternalResources
  • getPipeline
  • getFactory
  • setOptions
  • getOption
  • getOptions
  • getPipelineFactory
  • setPipeline
  • getPipelineFactory,
  • setPipeline,
  • setFactory

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • 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