public interface ChannelResolver
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getConsumer(java.lang.Class<T> interfaze,
java.lang.String name)
Creates a consumer proxy to a channel using the specified topic.
|
<T> T |
getConsumer(java.lang.Class<T> interfaze,
java.lang.String name,
java.lang.String topic)
Creates a consumer proxy to a channel using the default topic.
|
<T> T |
getProducer(java.lang.Class<T> interfaze,
java.lang.String name)
Creates a producer proxy to a channel using the default topic.
|
<T> T |
getProducer(java.lang.Class<T> interfaze,
java.lang.String name,
java.lang.String topic)
Creates a producer proxy to a channel using the specified topic.
|
java.lang.Object |
subscribe(java.lang.Class<?> type,
java.lang.String name,
java.lang.String id,
java.lang.String topic,
java.util.function.Consumer<?> consumer)
Subscribes to a channel.
|
<T> T getProducer(java.lang.Class<T> interfaze,
java.lang.String name)
throws org.fabric3.api.host.Fabric3Exception
interfaze - the producer interfacename - the channel nameorg.fabric3.api.host.Fabric3Exception - if there is a resolution exception<T> T getProducer(java.lang.Class<T> interfaze,
java.lang.String name,
java.lang.String topic)
throws org.fabric3.api.host.Fabric3Exception
interfaze - the producer interfacename - the channel nametopic - the topic nameorg.fabric3.api.host.Fabric3Exception - if there is a resolution exception<T> T getConsumer(java.lang.Class<T> interfaze,
java.lang.String name)
interfaze - the consumer interfacename - the channel nameorg.fabric3.api.host.Fabric3Exception - if there is a resolution exception<T> T getConsumer(java.lang.Class<T> interfaze,
java.lang.String name,
java.lang.String topic)
interfaze - the consumer interfacename - the channel nametopic - the topic nameorg.fabric3.api.host.Fabric3Exception - if there is a resolution exceptionjava.lang.Object subscribe(java.lang.Class<?> type,
java.lang.String name,
java.lang.String id,
java.lang.String topic,
java.util.function.Consumer<?> consumer)
type - the event type to receivename - the channel nameid - the subscription idtopic - the topicconsumer - the consumer to pass messages to