com.h3c.nbio

## Class AbstractMessage

- java.lang.Object
- - com.h3c.nbio.AbstractMessage

- All Implemented Interfaces:
    Message
  Direct Known Subclasses:
    OpenflowMessage

      public abstract class AbstractMessage
      extends Object
      implements Message

  Abstract base implementation of the `Message` interface.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected int` | `length`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AbstractMessage()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `length()` Gets the message length in bytes.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### length

          protected int length

  - ### Constructor Detail

    - #### AbstractMessage

          public AbstractMessage()

  - ### Method Detail

    - #### length

          public int length()

      Description copied from interface: `Message`
      Gets the message length in bytes.
      Specified by:
        `length` in interface `Message`
      Returns:
        number of bytes

Copyright © 2014. All Rights Reserved.