Tabnine Logo
AbstractNIOAsyncQueueReader.read0
Code IndexAdd Tabnine to your IDE (free)

How to use
read0
method
in
org.glassfish.grizzly.nio.AbstractNIOAsyncQueueReader

Best Java code snippets using org.glassfish.grizzly.nio.AbstractNIOAsyncQueueReader.read0 (Showing top 12 results out of 315)

origin: javaee/grizzly

/**
 * Performs real read on the NIO channel
 * 
 * @param connection the {@link Connection} to read from
 * @param queueRecord the record to be read to
 * @throws java.io.IOException
 */
final protected int doRead(final Connection connection,
    final AsyncReadQueueRecord queueRecord) throws IOException {
  final Object message = queueRecord.getMessage();
  final Buffer buffer = (Buffer) message;
  final ReadResult currentResult = queueRecord.getCurrentResult();
  final int readBytes = read0(connection, buffer, currentResult);
  if (readBytes == -1) {
    throw new EOFException();
  }
  return readBytes;
}
origin: javaee/grizzly

/**
 * Performs real read on the NIO channel
 * 
 * @param connection the {@link Connection} to read from
 * @param queueRecord the record to be read to
 * @throws java.io.IOException
 */
final protected int doRead(final Connection connection,
    final AsyncReadQueueRecord queueRecord) throws IOException {
  final Object message = queueRecord.getMessage();
  final Buffer buffer = (Buffer) message;
  final ReadResult currentResult = queueRecord.getCurrentResult();
  final int readBytes = read0(connection, buffer, currentResult);
  if (readBytes == -1) {
    throw new EOFException();
  }
  return readBytes;
}
origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * Performs real read on the NIO channel
 * 
 * @param connection the {@link Connection} to read from
 * @param queueRecord the record to be read to
 * @throws java.io.IOException
 */
final protected int doRead(final Connection connection,
    final AsyncReadQueueRecord queueRecord) throws IOException {
  final Object message = queueRecord.getMessage();
  final Buffer buffer = (Buffer) message;
  final ReadResult currentResult = queueRecord.getCurrentResult();
  final int readBytes = read0(connection, buffer, currentResult);
  if (readBytes == -1) {
    throw new EOFException();
  }
  return readBytes;
}
origin: javaee/grizzly

/**
 * Performs real read on the NIO channel
 * 
 * @param connection the {@link Connection} to read from
 * @param queueRecord the record to be read to
 * @throws java.io.IOException
 */
final protected int doRead(final Connection connection,
    final AsyncReadQueueRecord queueRecord) throws IOException {
  final Object message = queueRecord.getMessage();
  final Buffer buffer = (Buffer) message;
  final ReadResult currentResult = queueRecord.getCurrentResult();
  final int readBytes = read0(connection, buffer, currentResult);
  if (readBytes == -1) {
    throw new EOFException();
  }
  return readBytes;
}
origin: javaee/grizzly

/**
 * Performs real read on the NIO channel
 * 
 * @param connection the {@link Connection} to read from
 * @param queueRecord the record to be read to
 * @throws java.io.IOException
 */
final protected int doRead(final Connection connection,
    final AsyncReadQueueRecord queueRecord) throws IOException {
  final Object message = queueRecord.getMessage();
  final Buffer buffer = (Buffer) message;
  final ReadResult currentResult = queueRecord.getCurrentResult();
  final int readBytes = read0(connection, buffer, currentResult);
  if (readBytes == -1) {
    throw new EOFException();
  }
  return readBytes;
}
origin: org.glassfish.grizzly/grizzly-core

/**
 * Performs real read on the NIO channel
 * 
 * @param connection the {@link Connection} to read from
 * @param queueRecord the record to be read to
 * @throws java.io.IOException
 */
final protected int doRead(final Connection connection,
    final AsyncReadQueueRecord queueRecord) throws IOException {
  final Object message = queueRecord.getMessage();
  final Buffer buffer = (Buffer) message;
  final ReadResult currentResult = queueRecord.getCurrentResult();
  final int readBytes = read0(connection, buffer, currentResult);
  if (readBytes == -1) {
    throw new EOFException();
  }
  return readBytes;
}
origin: javaee/grizzly

/**
 * Performs real read on the NIO channel
 * 
 * @param connection the {@link Connection} to read from
 * @param queueRecord the record to be read to
 * @throws java.io.IOException
 */
final protected int doRead(final Connection connection,
    final AsyncReadQueueRecord queueRecord) throws IOException {
  final Object message = queueRecord.getMessage();
  final Buffer buffer = (Buffer) message;
  final ReadResult currentResult = queueRecord.getCurrentResult();
  final int readBytes = read0(connection, buffer, currentResult);
  if (readBytes == -1) {
    throw new EOFException();
  }
  return readBytes;
}
origin: javaee/grizzly

/**
 * Performs real read on the NIO channel
 * 
 * @param connection the {@link Connection} to read from
 * @param queueRecord the record to be read to
 * @throws java.io.IOException
 */
final protected int doRead(final Connection connection,
    final AsyncReadQueueRecord queueRecord) throws IOException {
  final Object message = queueRecord.getMessage();
  final Buffer buffer = (Buffer) message;
  final ReadResult currentResult = queueRecord.getCurrentResult();
  final int readBytes = read0(connection, buffer, currentResult);
  if (readBytes == -1) {
    throw new EOFException();
  }
  return readBytes;
}
origin: javaee/grizzly

/**
 * Performs real read on the NIO channel
 * 
 * @param connection the {@link Connection} to read from
 * @param queueRecord the record to be read to
 * @throws java.io.IOException
 */
final protected int doRead(final Connection connection,
    final AsyncReadQueueRecord queueRecord) throws IOException {
  final Object message = queueRecord.getMessage();
  final Buffer buffer = (Buffer) message;
  final ReadResult currentResult = queueRecord.getCurrentResult();
  final int readBytes = read0(connection, buffer, currentResult);
  if (readBytes == -1) {
    throw new EOFException();
  }
  return readBytes;
}
origin: javaee/grizzly

/**
 * Performs real read on the NIO channel
 * 
 * @param connection the {@link Connection} to read from
 * @param queueRecord the record to be read to
 * @throws java.io.IOException
 */
final protected int doRead(final Connection connection,
    final AsyncReadQueueRecord queueRecord) throws IOException {
  final Object message = queueRecord.getMessage();
  final Buffer buffer = (Buffer) message;
  final ReadResult currentResult = queueRecord.getCurrentResult();
  final int readBytes = read0(connection, buffer, currentResult);
  if (readBytes == -1) {
    throw new EOFException();
  }
  return readBytes;
}
origin: org.mule.glassfish.grizzly/grizzly-framework

/**
 * Performs real read on the NIO channel
 * 
 * @param connection the {@link Connection} to read from
 * @param queueRecord the record to be read to
 * @throws java.io.IOException
 */
final protected int doRead(final Connection connection,
    final AsyncReadQueueRecord queueRecord) throws IOException {
  final Object message = queueRecord.getMessage();
  final Buffer buffer = (Buffer) message;
  final ReadResult currentResult = queueRecord.getCurrentResult();
  final int readBytes = read0(connection, buffer, currentResult);
  if (readBytes == -1) {
    throw new EOFException();
  }
  return readBytes;
}
origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * Performs real read on the NIO channel
 * 
 * @param connection the {@link Connection} to read from
 * @param queueRecord the record to be read to
 * @throws java.io.IOException
 */
final protected int doRead(final Connection connection,
    final AsyncReadQueueRecord queueRecord) throws IOException {
  final Object message = queueRecord.getMessage();
  final Buffer buffer = (Buffer) message;
  final ReadResult currentResult = queueRecord.getCurrentResult();
  final int readBytes = read0(connection, buffer, currentResult);
  if (readBytes == -1) {
    throw new EOFException();
  }
  return readBytes;
}
org.glassfish.grizzly.nioAbstractNIOAsyncQueueReaderread0

Popular methods of AbstractNIOAsyncQueueReader

  • doRead
    Performs real read on the NIO channel
  • failure
  • intercept
  • onReadFailure
  • onReadyToRead

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JList (javax.swing)
  • Option (scala)
  • Best IntelliJ plugins
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