cc.otavia.handler.codec

Members list

Type members

Classlikes

Attributes

Supertypes
class Object
trait Matchable
class Any
Show all
Known subtypes
class SslHandler

Attributes

Supertypes
class Object
trait Matchable
class Any
Show all
Known subtypes

Attributes

Supertypes
class Object
trait Matchable
class Any
Show all
Known subtypes

Attributes

Supertypes
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Show all
Known subtypes
class CodecException(message: String | Null, cause: Throwable | Null) extends RuntimeException

An Exception which is thrown by a codec.

An Exception which is thrown by a codec.

Attributes

Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
class CorruptedFrameException(message: String | Null, cause: Throwable | Null) extends DecoderException

An DecoderException which is thrown when the received frame data could not be decoded by an inbound handler.

An DecoderException which is thrown when the received frame data could not be decoded by an inbound handler.

Attributes

Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
class DecoderException(message: String | Null, cause: Throwable | Null) extends CodecException

An CodecException which is thrown by a decoder.

An CodecException which is thrown by a decoder.

Attributes

Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
class EncoderException(message: String | Null, cause: Throwable | Null) extends CodecException

An CodecException which is thrown by an encoder.

An CodecException which is thrown by an encoder.

Attributes

Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
class FixedLengthFrameDecoder(frameLength: Int) extends ByteToMessageDecoder

A decoder that splits the received Buffers by the fixed number of bytes. For example, if you received the following four fragmented packets:

A decoder that splits the received Buffers by the fixed number of bytes. For example, if you received the following four fragmented packets:

+---+----+------+----+\
| A | BC | DEFG | HI |\
+---+----+------+----+\

A FixedLengthFrameDecoder(3) will decode them into the following three packets with the fixed length:

+-----+-----+-----+\
| ABC | DEF | GHI |\
+-----+-----+-----+\

Value parameters

frameLength

the length of the frame

Attributes

Supertypes
class Object
trait Matchable
class Any
Show all

ChannelHandler which encodes message in a stream-like fashion from one message to a Buffer. Example implementation which encodes Integers to a Buffer.

ChannelHandler which encodes message in a stream-like fashion from one message to a Buffer. Example implementation which encodes Integers to a Buffer.

     class IntegerEncoder extends MessageToByteEncoder[Integer]() {
           override protected def encode(ctx: ChannelHandlerContext, msg: Integer, out: Buffer): Unit = {
               out.writeInt(msg)
           }
     }

Attributes

Supertypes
class Object
trait Matchable
class Any
Show all
Known subtypes
class PrematureChannelClosureException(message: String | Null, cause: Throwable | Null) extends CodecException

A CodecException which is thrown when a Channel is closed unexpectedly before the codec finishes handling the current message, such as missing response while waiting for a request.

A CodecException which is thrown when a Channel is closed unexpectedly before the codec finishes handling the current message, such as missing response while waiting for a request.

Attributes

Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
class TooLongFrameException(message: String | Null, cause: Throwable | Null) extends DecoderException

An DecoderException which is thrown when the length of the frame decoded is greater than the allowed maximum.

An DecoderException which is thrown when the length of the frame decoded is greater than the allowed maximum.

Attributes

Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
class UnsupportedMessageTypeException(msg: String | Null, cause: Throwable | Null) extends CodecException

Thrown if an unsupported message is received by a codec.

Thrown if an unsupported message is received by a codec.

Attributes

Companion
object
Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type