Platform SDK Java 8.5 API Reference

com.genesyslab.platform.commons
Class PSDKRuntime

java.lang.Object
  extended by com.genesyslab.platform.commons.PSDKRuntime

public final class PSDKRuntime
extends java.lang.Object

PSDK Runtime helpers.


Method Summary
static void awaitTermination()
          Waits for termination of PSDK activity.
static void awaitTermination(long timeout, java.util.concurrent.TimeUnit timeUnit)
          Waits for termination of PSDK activity or timeout occurs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

awaitTermination

public static void awaitTermination()
                             throws java.lang.InterruptedException
Waits for termination of PSDK activity. It is similar to call of awaitTermination(Long.MAX_VALUE, TimeUnit.MILLISECONDS).

To initiate PSDK activity termination:

This method blocks until:

NOTE: this method must be called outside of any PSDK invoker or any PSDK timer action because the method waits for termination of all PSDK invokers and PSDK timer actions.

Throws:
java.lang.InterruptedException - when the caller thread was interrupted.

awaitTermination

public static void awaitTermination(long timeout,
                                    java.util.concurrent.TimeUnit timeUnit)
                             throws java.lang.InterruptedException,
                                    java.util.concurrent.TimeoutException
Waits for termination of PSDK activity or timeout occurs.

To initiate PSDK activity termination:

This method blocks until:

NOTE: this method must be called outside of any PSDK invoker or any PSDK timer action because the method waits for termination of all PSDK invokers and PSDK timer actions.

Parameters:
timeout - the maximum time to wait
timeUnit - the time unit of the timeout argument
Throws:
java.lang.InterruptedException - when the caller thread was interrupted.
java.util.concurrent.TimeoutException

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.