Example usage for org.apache.http.nio.reactor ListeningIOReactor resume

List of usage examples for org.apache.http.nio.reactor ListeningIOReactor resume

Introduction

In this page you can find the example usage for org.apache.http.nio.reactor ListeningIOReactor resume.

Prototype

void resume() throws IOException;

Source Link

Document

Resumes the I/O reactor restoring its ability to accept incoming connections on all active endpoints.

Usage

From source file:org.apache.synapse.transport.passthru.core.PassThroughListeningIOReactorManager.java

/**
 * Resume IO Reactor which is registered by HTTPListener running on given port
 *
 * @param port Port of  axis2 PTT Listener
 * @throws IOException Exception throwing when pausing
 *//*from   ww  w  .  j a v  a 2 s  .c om*/
public void resumeIOReactor(int port) throws IOException {
    ListeningIOReactor listeningIOReactor = passThroughListenerIOReactorMapper.get(port);
    if (listeningIOReactor != null) {
        listeningIOReactor.resume();
    } else {
        log.error("Cannot find Pass Through Listener for port " + port);
    }
}