org.hornetq.spi.core.protocol
Interface ProtocolManager

All Superinterfaces:
BufferDecoder

public interface ProtocolManager
extends BufferDecoder

A ProtocolManager

Author:
Tim Fox

Method Summary
 ConnectionEntry createConnectionEntry(Acceptor acceptorUsed, Connection connection)
           
 void handleBuffer(RemotingConnection connection, org.hornetq.api.core.HornetQBuffer buffer)
           
 int isReadyToHandle(org.hornetq.api.core.HornetQBuffer buffer)
          called by the remoting system prior to BufferHandler.bufferReceived(Object, org.hornetq.api.core.HornetQBuffer).
 void removeHandler(String name)
           
 

Method Detail

createConnectionEntry

ConnectionEntry createConnectionEntry(Acceptor acceptorUsed,
                                      Connection connection)

removeHandler

void removeHandler(String name)

isReadyToHandle

int isReadyToHandle(org.hornetq.api.core.HornetQBuffer buffer)
Description copied from interface: BufferDecoder
called by the remoting system prior to BufferHandler.bufferReceived(Object, org.hornetq.api.core.HornetQBuffer).

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

Specified by:
isReadyToHandle in interface BufferDecoder
Parameters:
buffer - the buffer
Returns:
true id the buffer can be decoded..

handleBuffer

void handleBuffer(RemotingConnection connection,
                  org.hornetq.api.core.HornetQBuffer buffer)


Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.