Tabnine Logo
TemporarySelectorReader
Code IndexAdd Tabnine to your IDE (free)

How to use
TemporarySelectorReader
in
org.glassfish.grizzly.nio.tmpselectors

Best Java code snippets using org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader (Showing top 20 results out of 315)

origin: javaee/grizzly

failure(new IllegalStateException(
    "Connection should be NIOConnection and cannot be null"),
    completionHandler);
final int readBytes = read0(nioConnection, interceptor,
    currentResult, message, timeout, timeunit);
  failure(new TimeoutException(), completionHandler);
failure(e, completionHandler);
origin: javaee/grizzly

@Override
public void read(
    Connection<SocketAddress> connection, Buffer message,
    CompletionHandler<ReadResult<Buffer, SocketAddress>> completionHandler,
    Interceptor<ReadResult> interceptor) {
  read(connection, message, completionHandler,
      interceptor,
      connection.getReadTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}
origin: org.glassfish.grizzly/grizzly-websockets-server

private int read0(NIOConnection connection,
    Interceptor<ReadResult> interceptor,
    ReadResult<Buffer, SocketAddress> currentResult, Buffer buffer,
    long timeout, TimeUnit timeunit) throws IOException {
  boolean isCompleted = false;
  while (!isCompleted) {
    isCompleted = true;
    final int readBytes = read0(connection, currentResult,
        buffer, timeout, timeunit);
    if (readBytes <= 0) {
      return -1;
    } else {
      if (interceptor != null) {
        isCompleted = (interceptor.intercept(Reader.READ_EVENT,
            null, currentResult) & Interceptor.COMPLETED) != 0;
      }
    }
  }
  return currentResult.getReadSize();
}
origin: javaee/grizzly

bytesRead = readNow0(connection, buffer, currentResult);
  bytesRead = readNow0(connection, buffer, currentResult);
origin: org.glassfish.grizzly/grizzly-http-server-core

private int read0(NIOConnection connection,
    Interceptor<ReadResult> interceptor,
    ReadResult<Buffer, SocketAddress> currentResult, Buffer buffer,
    long timeout, TimeUnit timeunit) throws IOException {
  boolean isCompleted = false;
  while (!isCompleted) {
    isCompleted = true;
    final int readBytes = read0(connection, currentResult,
        buffer, timeout, timeunit);
    if (readBytes <= 0) {
      return -1;
    } else {
      if (interceptor != null) {
        isCompleted = (interceptor.intercept(Reader.READ_EVENT,
            null, currentResult) & Interceptor.COMPLETED) != 0;
      }
    }
  }
  return currentResult.getReadSize();
}
origin: org.glassfish.grizzly/grizzly-websockets-server

bytesRead = readNow0(connection, buffer, currentResult);
  bytesRead = readNow0(connection, buffer, currentResult);
origin: org.glassfish.grizzly/grizzly-core

failure(new IllegalStateException(
    "Connection should be NIOConnection and cannot be null"),
    completionHandler);
final int readBytes = read0(nioConnection, interceptor,
    currentResult, message, timeout, timeunit);
  failure(new TimeoutException(), completionHandler);
failure(e, completionHandler);
origin: org.glassfish.grizzly/grizzly-core

@Override
public void read(
    Connection<SocketAddress> connection, Buffer message,
    CompletionHandler<ReadResult<Buffer, SocketAddress>> completionHandler,
    Interceptor<ReadResult> interceptor) {
  read(connection, message, completionHandler,
      interceptor,
      connection.getReadTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}
origin: javaee/grizzly

private int read0(NIOConnection connection,
    Interceptor<ReadResult> interceptor,
    ReadResult<Buffer, SocketAddress> currentResult, Buffer buffer,
    long timeout, TimeUnit timeunit) throws IOException {
  boolean isCompleted = false;
  while (!isCompleted) {
    isCompleted = true;
    final int readBytes = read0(connection, currentResult,
        buffer, timeout, timeunit);
    if (readBytes <= 0) {
      return -1;
    } else {
      if (interceptor != null) {
        isCompleted = (interceptor.intercept(Reader.READ_EVENT,
            null, currentResult) & Interceptor.COMPLETED) != 0;
      }
    }
  }
  return currentResult.getReadSize();
}
origin: javaee/grizzly

bytesRead = readNow0(connection, buffer, currentResult);
  bytesRead = readNow0(connection, buffer, currentResult);
origin: org.glassfish.grizzly/grizzly-http-server-core

failure(new IllegalStateException(
    "Connection should be NIOConnection and cannot be null"),
    completionHandler);
final int readBytes = read0(nioConnection, interceptor,
    currentResult, message, timeout, timeunit);
  failure(new TimeoutException(), completionHandler);
failure(e, completionHandler);
origin: javaee/grizzly

@Override
public void read(
    Connection<SocketAddress> connection, Buffer message,
    CompletionHandler<ReadResult<Buffer, SocketAddress>> completionHandler,
    Interceptor<ReadResult> interceptor) {
  read(connection, message, completionHandler,
      interceptor,
      connection.getReadTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}
origin: javaee/grizzly

private int read0(NIOConnection connection,
    Interceptor<ReadResult> interceptor,
    ReadResult<Buffer, SocketAddress> currentResult, Buffer buffer,
    long timeout, TimeUnit timeunit) throws IOException {
  boolean isCompleted = false;
  while (!isCompleted) {
    isCompleted = true;
    final int readBytes = read0(connection, currentResult,
        buffer, timeout, timeunit);
    if (readBytes <= 0) {
      return -1;
    } else {
      if (interceptor != null) {
        isCompleted = (interceptor.intercept(Reader.READ_EVENT,
            null, currentResult) & Interceptor.COMPLETED) != 0;
      }
    }
  }
  return currentResult.getReadSize();
}
origin: javaee/grizzly

bytesRead = readNow0(connection, buffer, currentResult);
  bytesRead = readNow0(connection, buffer, currentResult);
origin: org.glassfish.grizzly/grizzly-websockets-server

failure(new IllegalStateException(
    "Connection should be NIOConnection and cannot be null"),
    completionHandler);
final int readBytes = read0(nioConnection, interceptor,
    currentResult, message, timeout, timeunit);
  failure(new TimeoutException(), completionHandler);
failure(e, completionHandler);
origin: javaee/grizzly

@Override
public void read(
    Connection<SocketAddress> connection, Buffer message,
    CompletionHandler<ReadResult<Buffer, SocketAddress>> completionHandler,
    Interceptor<ReadResult> interceptor) {
  read(connection, message, completionHandler,
      interceptor,
      connection.getReadTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}
origin: org.glassfish.grizzly/grizzly-core

private int read0(NIOConnection connection,
    Interceptor<ReadResult> interceptor,
    ReadResult<Buffer, SocketAddress> currentResult, Buffer buffer,
    long timeout, TimeUnit timeunit) throws IOException {
  boolean isCompleted = false;
  while (!isCompleted) {
    isCompleted = true;
    final int readBytes = read0(connection, currentResult,
        buffer, timeout, timeunit);
    if (readBytes <= 0) {
      return -1;
    } else {
      if (interceptor != null) {
        isCompleted = (interceptor.intercept(Reader.READ_EVENT,
            null, currentResult) & Interceptor.COMPLETED) != 0;
      }
    }
  }
  return currentResult.getReadSize();
}
origin: javaee/grizzly

bytesRead = readNow0(connection, buffer, currentResult);
  bytesRead = readNow0(connection, buffer, currentResult);
origin: javaee/grizzly

failure(new IllegalStateException(
    "Connection should be NIOConnection and cannot be null"),
    completionHandler);
final int readBytes = read0(nioConnection, interceptor,
    currentResult, message, timeout, timeunit);
  failure(new TimeoutException(), completionHandler);
failure(e, completionHandler);
origin: javaee/grizzly

@Override
public void read(
    Connection<SocketAddress> connection, Buffer message,
    CompletionHandler<ReadResult<Buffer, SocketAddress>> completionHandler,
    Interceptor<ReadResult> interceptor) {
  read(connection, message, completionHandler,
      interceptor,
      connection.getReadTimeout(TimeUnit.MILLISECONDS),
      TimeUnit.MILLISECONDS);
}
org.glassfish.grizzly.nio.tmpselectorsTemporarySelectorReader

Most used methods

  • failure
  • read
    Method reads data to the message.
  • read0
  • readNow0

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JCheckBox (javax.swing)
  • JTable (javax.swing)
  • Github Copilot alternatives
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