Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Project Rio
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jini.rio.associations
Interface ServiceSelectionStrategy<T>

All Superinterfaces:
  AssociationListener<T>

All Known Implementing Classes:
  AbstractServiceSelectionStrategy, FailOver, RoundRobin, Utilization

    public interface ServiceSelectionStrategy<T>

extends AssociationListener<T>

Provides a way to select a service for invocation across a collection of associated services. Implementations of this interface provide a way to separate service selection from the actual implementation of a dynamic proxy.

Method Summary
`T` | `getService()` Select a service for invocation
`void` | `setAssociation(Association<T> association)` Set the association
`void` | `terminate()` Clean up any resources allocated

Methods inherited from interface org.jini.rio.core.AssociationListener
`broken, changed, discovered`

Method Detail

### setAssociation

    void setAssociation(Association<T> association)

  Set the association

  Parameters:
    `association` - The association

### getService

    T getService()

  Select a service for invocation

  Returns:
    The proxy for a service

### terminate

    void terminate()

  Clean up any resources allocated

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Project Rio
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © Project Rio.