public interface DirectConnectionFactory
| Modifier and Type | Method and Description |
|---|---|
<T> java.util.function.Supplier<T> |
getConnection(java.net.URI channelUri,
java.net.URI attachUri,
java.lang.Class<T> type)
Returns a direct connection to the channel.
|
<T> java.util.function.Supplier<T> |
getConnection(java.net.URI channelUri,
java.net.URI attachUri,
java.lang.Class<T> type,
java.lang.String topic)
Returns a direct connection to the channel topic.
|
java.util.List<java.lang.Class<?>> |
getTypes()
Returns the connection types this factory provides.
|
java.util.List<java.lang.Class<?>> getTypes()
<T> java.util.function.Supplier<T> getConnection(java.net.URI channelUri,
java.net.URI attachUri,
java.lang.Class<T> type)
channelUri - the channel URIattachUri - the producer or consumer URI; together with the channel URI, these two values form a unique keytype - the connection type<T> java.util.function.Supplier<T> getConnection(java.net.URI channelUri,
java.net.URI attachUri,
java.lang.Class<T> type,
java.lang.String topic)
channelUri - the channel URIattachUri - the producer or consumer URI; together with the channel URI, these two values form a unique keytype - the connection typetopic - the topic name