DJAVA

au.gov.aao.drama
Interface DramaPath.DisconnectHandler

Enclosing class:
DramaPath

public static interface DramaPath.DisconnectHandler

This interface is to be used by objects which are specified with with DramaPath.SetDisconnect.

These objects can be used to obtain notification of a task disconnecting.


Method Summary
 void Disconnect(DramaTask task, DramaPath path)
          Invoked when a task associated with a DramaPath object disconnects.
 

Method Detail

Disconnect

void Disconnect(DramaTask task,
                DramaPath path)
Invoked when a task associated with a DramaPath object disconnects.

Note 1 if you wish to try to get the path again, do not do it immediately from Disconnect. DRAMA will crash. Instead, use DramaTask.TimerInit() to specify an object which will do the reload. You can specify a zero second timer if required. This ensures the reload is done after DRAMA has finished processing the disconnection.

Note 2 When used in its intended way, this method is always invoked in the DRAMA thread and with the DRAMA semaphore taken. Please see thread Issues for important information, particuarly if you are updating Swing widgets from your implemention of this method.

Parameters:
task - The DramaTask object.
path - The DramaPath object the disconnect is for

DJAVA

Click here for the DRAMA home page and here for the AAO home page.

For more information, contact tjf@aaoepp.aao.gov.au.