com.artima.place
Interface Link
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- UnicastDiscoveryLink, URLLink, MulticastDiscoveryLink
- public interface Link
- extends java.io.Serializable
Represents a link to a service on the network. The result of any
successful link activation is a Jini service item, passed to the
ActivationClient
via the activationSucceeded
method.
activate
public LinkActivation activate(ActivationClient activationClient)
- Retrieve this service. The
activate
method will return
promptly, returning a LinkActivation
object that enables
clients to abort an activation. Invoking activate
again
while an activation is currently in progress just starts a new
activation independent of the already running one.
- Parameters:
activationClient
- the ActivationClient
that will
notified when this link activation completes- Returns:
- the
LinkActivation
object with which the client
can interact with this activation of this Link
- Throws:
NullPointerException
- if passed activationClient
is null