Example usage for org.apache.http.impl.nio.bootstrap HttpServer shutdown

List of usage examples for org.apache.http.impl.nio.bootstrap HttpServer shutdown

Introduction

In this page you can find the example usage for org.apache.http.impl.nio.bootstrap HttpServer shutdown.

Prototype

public void shutdown(final long gracePeriod, final TimeUnit timeUnit) 

Source Link

Usage

From source file:org.apache.http.nio.testserver.HttpServerNio.java

public void shutdown() {
    final HttpServer local = this.server;
    this.server = null;
    if (local != null) {
        local.shutdown(5, TimeUnit.SECONDS);
    }//from  www  .java  2s.  co  m
}