Interface AdapterSelector.AdapterProvider<O,I,CO,CI>
-
- Type Parameters:
O- the output type from the underlying machine/platformI- the input type to the underlying machine/platformCO- the output type of the connectorCI- the input type of the connector
- All Known Subinterfaces:
ChannelAdapterSelector.ChannelAdapterProvider<O,I,CO,CI>
- All Known Implementing Classes:
AbstractChannelConnector.ChannelAdapterProvider,AbstractConnector.BasicAdapterProvider
- Enclosing interface:
- AdapterSelector<O,I,CO,CI>
public static interface AdapterSelector.AdapterProvider<O,I,CO,CI>Provides access to adapter data.- Author:
- Holger Eichelberger, SSE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProtocolAdapter<O,I,CO,CI>getAdapter(int index)Returns the specified adapter.intgetAdapterCount()Returns the total number of adapters.
-
-
-
Method Detail
-
getAdapterCount
int getAdapterCount()
Returns the total number of adapters.- Returns:
- the total number
-
getAdapter
ProtocolAdapter<O,I,CO,CI> getAdapter(int index)
Returns the specified adapter.- Parameters:
index- the 0-based index- Returns:
- the adapter
- Throws:
java.lang.IndexOutOfBoundsException- ofindexnot in [0;getAdapterCount()-1]
-
-