com.unboundid.directory.sdk.common.api
Interface ServerThread


@Extensible
@DirectoryServerExtension
@DirectoryProxyServerExtension(appliesToLocalContent=true,
                               appliesToRemoteContent=false)
@SynchronizationServerExtension(appliesToLocalContent=true,
                                appliesToSynchronizedContent=false)
@ThreadSafety(level=INTERFACE_NOT_THREADSAFE)
public interface ServerThread

This interface defines a set of methods that may be implemented by a thread which should be run in the server. If an extension needs to create one or more threads, then those threads should implement this interface and they should be created using the ServerContext.createThread(com.unboundid.directory.sdk.common.api.ServerThread, java.lang.String) method.


Method Summary
 void runThread()
          Performs the actual processing for this thread.
 

Method Detail

runThread

void runThread()
               throws com.unboundid.ldap.sdk.LDAPException
Performs the actual processing for this thread. When this method returns, the thread will stop running.

Throws:
com.unboundid.ldap.sdk.LDAPException - If the thread does not complete successfully.