Platform SDK Java 8.5 API Reference

com.genesyslab.platform.commons.threading
Interface AsyncInvoker

All Known Implementing Classes:
DefaultInvoker, SingleThreadInvoker

public interface AsyncInvoker

When channel needs 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 stopped and all associated resources - freed.
 void invoke(java.lang.Runnable target)
          Submit the task to this invoker.
 

Method Detail

invoke

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

Parameters:
target - Task to execute

dispose

void dispose()
Makes a hint to invoker that it's not used anymore and, PROBABLY, should be stopped and all associated 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.


Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.