Top Description Fields Constructors Methods
com.sun.star.comp.beans

public Class CallWatchThread

extends Thread
Class Inheritance

Helper class to watch calls into OOo with a timeout.

Field Summary

Modifier and TypeField and Description
private String
private Thread
private boolean
private static boolean
private long
Inherited from java.lang.Thread:
MAX_PRIORITYMIN_PRIORITYNORM_PRIORITY

Constructor Summary

AccessConstructor and Description
public
CallWatchThread(long nTimeout)

public
CallWatchThread(long nTimeout, String aTag)

Method Summary

Modifier and TypeMethod and Description
public void
private void
dbgPrint(String aMessage)

public synchronized void
public void
run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

This method is run by the thread when it executes.

Inherited from java.lang.Thread:
activeCountcheckAccessclonecurrentThreaddumpStackenumerategetAllStackTracesgetContextClassLoadergetDefaultUncaughtExceptionHandlergetIdgetNamegetPrioritygetStackTracegetStategetThreadGroupgetUncaughtExceptionHandlerholdsLockinterruptinterruptedisAliveisDaemonisInterruptedisVirtualjoinjoinjoinjoinofPlatformofVirtualonSpinWaitsetContextClassLoadersetDaemonsetDefaultUncaughtExceptionHandlersetNamesetPrioritysetUncaughtExceptionHandlersleepsleepsleepstartstartVirtualThreadstopthreadIdtoStringyield

Field Detail

aTagback to summary
private String aTag
aWatchedThreadback to summary
private Thread aWatchedThread
bAliveback to summary
private boolean bAlive
DEBUGback to summary
private static boolean DEBUG
nTimeoutback to summary
private long nTimeout

Constructor Detail

CallWatchThreadback to summary
public CallWatchThread(long nTimeout)
CallWatchThreadback to summary
public CallWatchThread(long nTimeout, String aTag)

Method Detail

cancelback to summary
public void cancel() throws InterruptedException
dbgPrintback to summary
private void dbgPrint(String aMessage)
restartback to summary
public synchronized void restart() throws InterruptedException
runback to summary
public void run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

Doc from java.lang.Thread.run.

This method is run by the thread when it executes. Subclasses of Thread may override this method.

This method is not intended to be invoked directly. If this thread is a platform thread created with a Runnable task then invoking this method will invoke the task's run method. If this thread is a virtual thread then invoking this method directly does nothing.

Annotations
@Override