Packages

package handlers

Type Members

  1. class AcceptHandler extends CompletionHandler[AsynchronousSocketChannel, Unit]

    This handler is called when new client connection is accepted.

    This handler is called when new client connection is accepted. It enables future accepts and orders a read operation that will return a single integer. That value represents size in bytes of an incoming message object. Every read operation is asynchronous so the result will available to the next handler

  2. class MessageContentHandler extends CompletionHandler[Integer, Unit]

    This handler is called after read operation and performs deserialization of incoming message.

    This handler is called after read operation and performs deserialization of incoming message. After that the message consumer is called followed by an attempt to order the next read operation.

  3. class MessageSizeHandler extends CompletionHandler[Integer, Unit]

    This handler is called when the size of the message is received.

    This handler is called when the size of the message is received. It triggers a read operation for the incoming message.

Ungrouped