RequestListener.isTerminated
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.apache.http.impl.bootstrap.RequestListener.isTerminated(Showing top 5 results out of 315)

origin: org.apache.httpcomponents/httpcore

@Override
public void run() {
  try {
    while (!isTerminated() && !Thread.interrupted()) {
      final Socket socket = this.serversocket.accept();
      socket.setSoTimeout(this.socketConfig.getSoTimeout());
      socket.setKeepAlive(this.socketConfig.isSoKeepAlive());
      socket.setTcpNoDelay(this.socketConfig.isTcpNoDelay());
      if (this.socketConfig.getRcvBufSize() > 0) {
        socket.setReceiveBufferSize(this.socketConfig.getRcvBufSize());
      }
      if (this.socketConfig.getSndBufSize() > 0) {
        socket.setSendBufferSize(this.socketConfig.getSndBufSize());
      }
      if (this.socketConfig.getSoLinger() >= 0) {
        socket.setSoLinger(true, this.socketConfig.getSoLinger());
      }
      final HttpServerConnection conn = this.connectionFactory.createConnection(socket);
      final Worker worker = new Worker(this.httpService, conn, this.exceptionLogger);
      this.executorService.execute(worker);
    }
  } catch (final Exception ex) {
    this.exceptionLogger.log(ex);
  }
}
origin: org.apache.httpcomponents/httpcore

@Override
public void run() {
  try {
    while (!isTerminated() && !Thread.interrupted()) {
      final Socket socket = this.serversocket.accept();
      socket.setSoTimeout(this.socketConfig.getSoTimeout());
      socket.setKeepAlive(this.socketConfig.isSoKeepAlive());
      socket.setTcpNoDelay(this.socketConfig.isTcpNoDelay());
      if (this.socketConfig.getRcvBufSize() > 0) {
        socket.setReceiveBufferSize(this.socketConfig.getRcvBufSize());
      }
      if (this.socketConfig.getSndBufSize() > 0) {
        socket.setSendBufferSize(this.socketConfig.getSndBufSize());
      }
      if (this.socketConfig.getSoLinger() >= 0) {
        socket.setSoLinger(true, this.socketConfig.getSoLinger());
      }
      final HttpServerConnection conn = this.connectionFactory.createConnection(socket);
      final Worker worker = new Worker(this.httpService, conn, this.exceptionLogger);
      this.executorService.execute(worker);
    }
  } catch (final Exception ex) {
    this.exceptionLogger.log(ex);
  }
}
origin: com.bugvm/bugvm-rt

@Override
public void run() {
  try {
    while (!isTerminated() && !Thread.interrupted()) {
      final Socket socket = this.serversocket.accept();
      socket.setSoTimeout(this.socketConfig.getSoTimeout());
      socket.setKeepAlive(this.socketConfig.isSoKeepAlive());
      socket.setTcpNoDelay(this.socketConfig.isTcpNoDelay());
      if (this.socketConfig.getRcvBufSize() > 0) {
        socket.setReceiveBufferSize(this.socketConfig.getRcvBufSize());
      }
      if (this.socketConfig.getSndBufSize() > 0) {
        socket.setSendBufferSize(this.socketConfig.getSndBufSize());
      }
      if (this.socketConfig.getSoLinger() >= 0) {
        socket.setSoLinger(true, this.socketConfig.getSoLinger());
      }
      final HttpServerConnection conn = this.connectionFactory.createConnection(socket);
      final Worker worker = new Worker(this.httpService, conn, this.exceptionLogger);
      this.executorService.execute(worker);
    }
  } catch (Exception ex) {
    this.exceptionLogger.log(ex);
  }
}
origin: Nextdoor/bender

@Override
public void run() {
  try {
    while (!isTerminated() && !Thread.interrupted()) {
      final Socket socket = this.serversocket.accept();
      socket.setSoTimeout(this.socketConfig.getSoTimeout());
      socket.setKeepAlive(this.socketConfig.isSoKeepAlive());
      socket.setTcpNoDelay(this.socketConfig.isTcpNoDelay());
      if (this.socketConfig.getRcvBufSize() > 0) {
        socket.setReceiveBufferSize(this.socketConfig.getRcvBufSize());
      }
      if (this.socketConfig.getSndBufSize() > 0) {
        socket.setSendBufferSize(this.socketConfig.getSndBufSize());
      }
      if (this.socketConfig.getSoLinger() >= 0) {
        socket.setSoLinger(true, this.socketConfig.getSoLinger());
      }
      final HttpServerConnection conn = this.connectionFactory.createConnection(socket);
      final Worker worker = new Worker(this.httpService, conn, this.exceptionLogger);
      this.executorService.execute(worker);
    }
  } catch (Exception ex) {
    this.exceptionLogger.log(ex);
  }
}
origin: Nextdoor/bender

@Override
public void run() {
  try {
    while (!isTerminated() && !Thread.interrupted()) {
      final Socket socket = this.serversocket.accept();
      socket.setSoTimeout(this.socketConfig.getSoTimeout());
      socket.setKeepAlive(this.socketConfig.isSoKeepAlive());
      socket.setTcpNoDelay(this.socketConfig.isTcpNoDelay());
      if (this.socketConfig.getRcvBufSize() > 0) {
        socket.setReceiveBufferSize(this.socketConfig.getRcvBufSize());
      }
      if (this.socketConfig.getSndBufSize() > 0) {
        socket.setSendBufferSize(this.socketConfig.getSndBufSize());
      }
      if (this.socketConfig.getSoLinger() >= 0) {
        socket.setSoLinger(true, this.socketConfig.getSoLinger());
      }
      final HttpServerConnection conn = this.connectionFactory.createConnection(socket);
      final Worker worker = new Worker(this.httpService, conn, this.exceptionLogger);
      this.executorService.execute(worker);
    }
  } catch (Exception ex) {
    this.exceptionLogger.log(ex);
  }
}
org.apache.http.impl.bootstrapRequestListenerisTerminated

Popular methods of RequestListener

  • <init>
  • terminate

Popular classes and methods

  • setScale (BigDecimal)
    Returns a new BigDecimal instance with the specified scale. If the new scale is greater than the old
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • onCreateOptionsMenu (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • Menu (java.awt)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on *
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)