uk.ac.starlink.plastic
Interface PlasticConnection


public interface PlasticConnection

Simple interface describing a connnection to a hub. Well-behaved implementations should ensure that the connection is closed even if unregister() is not explicitly called, for instance in the finalizer and/or at JVM shutdown.

Since:
7 Aug 2006
Author:
Mark Taylor

Method Summary
 URI getId()
          Returns the client ID which identifies this connection to the hub.
 void unregister()
          Ensures that this connection is no longer registered with the hub.
 

Method Detail

getId

public URI getId()
Returns the client ID which identifies this connection to the hub.

Returns:
client ID

unregister

public void unregister()
Ensures that this connection is no longer registered with the hub. This method may be called multiple times; any time after the first has no effect.



Copyright © 2006 \\ CLRC: Central Laboratory of the Research Councils. All Rights Reserved.