NioEndpoint$Poller.processSendfile
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.apache.tomcat.util.net.NioEndpoint$Poller.processSendfile (Showing top 13 results out of 315)

  • Common ways to obtain NioEndpoint$Poller
private void myMethod () {
NioEndpoint$Poller n =
  • new Poller()
  • Smart code suggestions by Codota
}
origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * @deprecated Replaced by processSendfile(sk, attachment, event)
 */
@Deprecated
public boolean processSendfile(SelectionKey sk,
    KeyAttachment attachment,
    @SuppressWarnings("unused") boolean reg, boolean event) {
  return processSendfile(sk, attachment, event);
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

if (sk.isReadable() || sk.isWritable() ) {
  if ( attachment.getSendfileData() != null ) {
    processSendfile(sk,attachment, false);
  } else {
    unreg(sk, attachment, sk.readyOps());
origin: codefollower/Tomcat-Research

if (sk.isReadable() || sk.isWritable() ) {
  if ( attachment.getSendfileData() != null ) {
    processSendfile(sk,attachment, false);
  } else {
    if ( isWorkerAvailable() ) {
origin: codefollower/Tomcat-Research

@Override
protected boolean breakKeepAliveLoop(
    SocketWrapper<NioChannel> socketWrapper) {
  // Do sendfile as needed: add socket to sendfile and end
  if (sendfileData != null && !error) {
    ((KeyAttachment) socketWrapper).setSendfileData(sendfileData);
    sendfileData.keepAlive = keepAlive;
    SelectionKey key = socketWrapper.getSocket().getIOChannel().keyFor(
        socketWrapper.getSocket().getPoller().getSelector());
    //do the first write on this thread, might as well
    openSocket = socketWrapper.getSocket().getPoller().processSendfile(key,
        (KeyAttachment) socketWrapper, true);
    return true;
  }
  return false;
}
origin: org.apache.geronimo.ext.tomcat/catalina

@Override
protected boolean breakKeepAliveLoop(
    SocketWrapper<NioChannel> socketWrapper) {
  // Do sendfile as needed: add socket to sendfile and end
  if (sendfileData != null && !error) {
    ((KeyAttachment) socketWrapper).setSendfileData(sendfileData);
    sendfileData.keepAlive = keepAlive;
    SelectionKey key = socketWrapper.getSocket().getIOChannel().keyFor(
        socketWrapper.getSocket().getPoller().getSelector());
    //do the first write on this thread, might as well
    openSocket = socketWrapper.getSocket().getPoller().processSendfile(key,
        (KeyAttachment) socketWrapper, true);
    return true;
  }
  return false;
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

if (sk.isReadable() || sk.isWritable() ) {
  if ( attachment.getSendfileData() != null ) {
    processSendfile(sk,attachment,true, false);
  } else if ( attachment.getComet() ) {
origin: org.apache.coyote/com.springsource.org.apache.coyote

@Override
protected boolean breakKeepAliveLoop(
    SocketWrapper<NioChannel> socketWrapper) {
  // Do sendfile as needed: add socket to sendfile and end
  if (sendfileData != null && !error) {
    ((KeyAttachment) socketWrapper).setSendfileData(sendfileData);
    sendfileData.keepAlive = keepAlive;
    SelectionKey key = socketWrapper.getSocket().getIOChannel().keyFor(
        socketWrapper.getSocket().getPoller().getSelector());
    //do the first write on this thread, might as well
    openSocket = socketWrapper.getSocket().getPoller().processSendfile(key,
        (KeyAttachment) socketWrapper, true, true);
    return true;
  }
  return false;
}
origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource

if (sk.isReadable() || sk.isWritable() ) {
  if ( attachment.getSendfileData() != null ) {
    processSendfile(sk,attachment,true, false);
  } else if ( attachment.getComet() ) {
origin: org.apache.geronimo.ext.tomcat/catalina

if (sk.isReadable() || sk.isWritable() ) {
  if ( attachment.getSendfileData() != null ) {
    processSendfile(sk,attachment, false);
  } else if ( attachment.getComet() ) {
origin: org.apache.coyote/com.springsource.org.apache.coyote

if (sk.isReadable() || sk.isWritable() ) {
  if ( attachment.getSendfileData() != null ) {
    processSendfile(sk,attachment,true, false);
  } else if ( attachment.getComet() ) {
origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource

SelectionKey key = socket.getIOChannel().keyFor(socket.getPoller().getSelector());
openSocket = socket.getPoller().processSendfile(key,ka,true,true);
break;
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

@Override
public SendfileState processSendfile(SendfileDataBase sendfileData) {
  setSendfileData((SendfileData) sendfileData);
  SelectionKey key = getSocket().getIOChannel().keyFor(
      getSocket().getPoller().getSelector());
  // Might as well do the first write on this thread
  return getSocket().getPoller().processSendfile(key, this, true);
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

SelectionKey key = socket.getIOChannel().keyFor(socket.getPoller().getSelector());
openSocket = socket.getPoller().processSendfile(key,ka,true,true);
break;
org.apache.tomcat.util.netNioEndpoint$PollerprocessSendfile

Popular methods of NioEndpoint$Poller

  • <init>
  • add
    Add specified socket and associated pool to the poller. The socket will be added to a temporary arra
  • addEvent
  • cancelledKey
  • destroy
    Destroy the poller.
  • events
    Processes events in the event queue of the Poller.
  • getSelector
  • processKey
  • reg
  • register
    Registers a newly created socket with the poller.
  • timeout
  • unreg
  • timeout,
  • unreg,
  • getKeyCount,
  • cometInterest

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)