org.apache.activemq.artemis.spi.core.remoting

## Interface BufferDecoder

-     public interface BufferDecoder

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `isReadyToHandle(ActiveMQBuffer buffer)` called by the remoting system prior to `BufferHandler.bufferReceived(Object, ActiveMQBuffer)`.

- - ### Method Detail

    - #### isReadyToHandle

          int isReadyToHandle(ActiveMQBuffer buffer)

      called by the remoting system prior to `BufferHandler.bufferReceived(Object, ActiveMQBuffer)`.

      The implementation should return true if there is enough data in the buffer to decode. otherwise false. * @param buffer the buffer

      Returns:
        true id the buffer can be decoded..

Copyright © 2018 The Apache Software Foundation. All rights reserved.