org.apache.qpid.management.domain.model
Class InvocationEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.apache.qpid.management.domain.model.InvocationEvent
All Implemented Interfaces:
Serializable

public class InvocationEvent
extends EventObject

Operation invocation event. This encapsulates all the information that a method invocation listener needs to know about an operation which is going to be invoked.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
InvocationEvent(Object source, int sequenceNumber, BlockingQueue<InvocationResult> exchangeChannel)
          Builds a new invocation event with the given data.
 
Method Summary
 BlockingQueue<InvocationResult> getExchangeChannel()
          Returns the exchange channel that will be used between event source and event listener for synchronous communication.
 int getSequenceNumber()
          Returns the sequence number that will be / has been used for method invocation.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvocationEvent

InvocationEvent(Object source,
                int sequenceNumber,
                BlockingQueue<InvocationResult> exchangeChannel)
Builds a new invocation event with the given data.

Parameters:
source - the event source.
sequenceNumber - the sequence number of the method invocation.
exchangeChannel - the exchange channel for synchronous communication.
Method Detail

getSequenceNumber

public int getSequenceNumber()
Returns the sequence number that will be / has been used for method invocation.

Returns:
the sequence number that will be / has been used for method invocation.

getExchangeChannel

public BlockingQueue<InvocationResult> getExchangeChannel()
Returns the exchange channel that will be used between event source and event listener for synchronous communication.

Returns:
the exchange channel that will be used for synchronous communication.


Licensed to the Apache Software Foundation