org.apache.qpid.client.state.listener
Class SpecificMethodFrameListener

java.lang.Object
  extended by org.apache.qpid.client.util.BlockingWaiter<org.apache.qpid.protocol.AMQMethodEvent>
      extended by org.apache.qpid.client.protocol.BlockingMethodFrameListener
          extended by org.apache.qpid.client.state.listener.SpecificMethodFrameListener
All Implemented Interfaces:
org.apache.qpid.protocol.AMQMethodListener
Direct Known Subclasses:
AMQSession_0_8.QueueDeclareOkHandler

public class SpecificMethodFrameListener
extends BlockingMethodFrameListener


Field Summary
 
Fields inherited from class org.apache.qpid.client.protocol.BlockingMethodFrameListener
_channelId
 
Fields inherited from class org.apache.qpid.client.util.BlockingWaiter
_doneObject
 
Constructor Summary
SpecificMethodFrameListener(int channelId, Class expectedClass)
           
 
Method Summary
 boolean processMethod(int channelId, org.apache.qpid.framing.AMQMethodBody frame)
          Delegates any additional handling of the incoming methods to another handler.
 
Methods inherited from class org.apache.qpid.client.protocol.BlockingMethodFrameListener
blockForFrame, methodReceived, process
 
Methods inherited from class org.apache.qpid.client.util.BlockingWaiter
block, close, error, received
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.qpid.protocol.AMQMethodListener
error
 

Constructor Detail

SpecificMethodFrameListener

public SpecificMethodFrameListener(int channelId,
                                   Class expectedClass)
Method Detail

processMethod

public boolean processMethod(int channelId,
                             org.apache.qpid.framing.AMQMethodBody frame)
Description copied from class: BlockingMethodFrameListener
Delegates any additional handling of the incoming methods to another handler.

Specified by:
processMethod in class BlockingMethodFrameListener
Parameters:
channelId - The channel id of the incoming method.
frame - The method body.
Returns:
true if the method was handled, false otherwise.


Licensed to the Apache Software Foundation