Tabnine Logo
IoFilter$NextFilter.messageReceived
Code IndexAdd Tabnine to your IDE (free)

How to use
messageReceived
method
in
org.littleshoot.mina.common.IoFilter$NextFilter

Best Java code snippets using org.littleshoot.mina.common.IoFilter$NextFilter.messageReceived (Showing top 9 results out of 315)

origin: org.littleshoot/mina-port

  public void flush() {
    while (!messageQueue.isEmpty()) {
      nextFilter.messageReceived(session, messageQueue.remove(0));
    }
  }
}
origin: org.littleshoot/mina-port

  Object message) throws Exception {
if (!(message instanceof ByteBuffer)) {
  nextFilter.messageReceived(session, message);
  return;
origin: org.littleshoot/mina-port

protected void processEvent(NextFilter nextFilter, IoSession session,
    EventType type, Object data) {
  if (type == EventType.RECEIVED) {
    nextFilter.messageReceived(session, data);
  } else if (type == EventType.SENT) {
    nextFilter.messageSent(session, data);
  } else if (type == EventType.EXCEPTION) {
    nextFilter.exceptionCaught(session, (Throwable) data);
  } else if (type == EventType.IDLE) {
    nextFilter.sessionIdle(session, (IdleStatus) data);
  } else if (type == EventType.OPENED) {
    nextFilter.sessionOpened(session);
  } else if (type == EventType.CLOSED) {
    nextFilter.sessionClosed(session);
  }
}
origin: org.littleshoot/mina-port

public void messageReceived(NextFilter nextFilter, IoSession session,
    Object message) throws Exception {
  nextFilter.messageReceived(session, message);
}
origin: org.littleshoot/mina-port

@Override
public void messageReceived(NextFilter nextFilter, IoSession session,
    Object message) {
  if (!isBlocked(session)) {
    // forward if not blocked
    nextFilter.messageReceived(session, message);
  } else {
    blockSession(session);
  }
}
origin: org.littleshoot/mina-port

  public void messageReceived(NextFilter nextFilter, IoSession session,
      Object message) throws Exception {
    if (message instanceof ByteBuffer) {
      add(session, ((ByteBuffer) message).remaining());
    }
    nextFilter.messageReceived(session, message);
  }
}
origin: org.littleshoot/mina-port

public void messageReceived(NextFilter nextFilter, IoSession session,
    Object message) {
  nextFilter.messageReceived(session, message);
}
origin: org.littleshoot/mina-port

  public void messageReceived(NextFilter nextFilter, IoSession session,
      Object message) throws Exception {
    if (message instanceof ByteBuffer) {
      release(session, ((ByteBuffer) message).remaining());
    }
    nextFilter.messageReceived(session, message);
  }
}
origin: org.littleshoot/mina-port

public void messageReceived(NextFilter nextFilter, IoSession session,
    Object message) {
  if (SessionLog.isInfoEnabled(session)) {
    SessionLog.info(session, "RECEIVED: " + message);
  }
  nextFilter.messageReceived(session, message);
}
org.littleshoot.mina.commonIoFilter$NextFiltermessageReceived

Javadoc

Forwards messageReceived event to next filter.

Popular methods of IoFilter$NextFilter

  • filterWrite
    Forwards filterWrite event to next filter.
  • exceptionCaught
    Forwards exceptionCaught event to next filter.
  • filterClose
    Forwards filterClose event to next filter.
  • messageSent
    Forwards messageSent event to next filter.
  • sessionClosed
    Forwards sessionClosed event to next filter.
  • sessionCreated
    Forwards sessionCreated event to next filter.
  • sessionIdle
    Forwards sessionIdle event to next filter.
  • sessionOpened
    Forwards sessionOpened event to next filter.

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • From CI to AI: The AI layer in your organization
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