org.apache.yoko.orb.OB
Interface DispatchStrategyOperations

All Known Subinterfaces:
DispatchStrategy

public interface DispatchStrategyOperations

This interface represents a dispatch strategy. To dispatch a request the ORB will pass a DispatchRequest. The dispatch strategy should call DispatchRequest::invoke() in the correct thread context.

See Also:
DispatchRequest, DispatchStrategyFactory

Method Summary
 void dispatch(DispatchRequest r)
          Called to cause a DispatchRequest to be run.
 int id()
          Determine the id of this DispatchStrategy.
 Any info()
          Determine information specific to this DispatchStrategy.
 

Method Detail

id

int id()
Determine the id of this DispatchStrategy. The ids of the built-in DispatchStrategy objects are SAME_THREAD, THREAD_PER_REQUEST and THREAD_POOL. Use DispatchStrategyFactory to create instances of these objects.


info

Any info()
Determine information specific to this DispatchStrategy.


dispatch

void dispatch(DispatchRequest r)
Called to cause a DispatchRequest to be run.

Parameters:
r - The request to execute.


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.