Configuration Platform SDK 7.6 API Reference

com.genesyslab.platform.commons.threading
Interface AsyncInvoker

All Known Implementing Classes:
DefaultInvoker, SingleThreadInvoker

public interface AsyncInvoker

When channel need to process something asynchronously it will use AsyncInvoker to perform the task. This interface most probably will allow the channel to use application specific and application managed thread pool, etc.

Please note, that some operations of channel can be relatively long (usually depending on network).


Method Summary
 void dispose()
          Makes a hint to invoker that it's not used anymore and, PROBABLY, should be stoped and all assotiated resources - freed.
 void invoke(java.lang.Runnable target)
          Submit the task to this invoker.
 

Method Detail

invoke

public void invoke(java.lang.Runnable target)
Submit the task to this invoker.

Parameters:
target - Task to execute

dispose

public void dispose()
Makes a hint to invoker that it's not used anymore and, PROBABLY, should be stoped and all assotiated resources - freed. Note that Invoker is usually shared between multiple channels, so call of this method from one channel doesn't mean it is really free.


Configuration Platform SDK 7.6 API Reference

Send comments on this topic.
Copyright © 2006–2008 Genesys Telecommunication Laboratories, Inc. All rights reserved.