Interface ConnectionSelector<T extends Connection>
- Type Parameters:
T
- The type of connections handled by this selector.
- All Known Implementing Classes:
MostDirectConnectionSelector
,SingletonConnectionSelector
public interface ConnectionSelector<T extends Connection>
A connection selector for (especially multi-connection) processes.
-
Method Summary
Modifier and Type Method Description T
getNextConnection(SCPRequest<?> request)
Get the next connection for the process from a list of connections that might satisfy the request.
-
Method Details
-
getNextConnection
Get the next connection for the process from a list of connections that might satisfy the request.- Parameters:
request
- The SCP message to be sent- Returns:
- The connection on which the message should be sent.
-