@CompileStatic public class BusExtensions extends Object implements groovy.lang.GroovyObject
| Constructor and Description |
|---|
BusExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
call(Consumer<T> selfType,
T value) |
static <T,V> void |
call(Function<T,V> selfType,
T value) |
static <T> void |
call(Supplier<T> selfType) |
static String |
getARG_DATA() |
static String |
getARG_TOPIC() |
groovy.lang.MetaClass |
getMetaClass() |
Object |
getProperty(String property) |
Object |
invokeMethod(String method,
Object arguments) |
static Bus |
notify(Bus selfType,
Map params) |
static Bus |
notify(Bus selfType,
Object key) |
static <T> Bus |
notify(Bus selfType,
Object key,
Supplier<Event<T>> obj) |
static <T> Bus |
notify(Bus selfType,
Object key,
T obj) |
static <T> Bus |
notify(Bus selfType,
String key,
groovy.lang.Closure<T> closure) |
static <K,T> Registration<K,Consumer<T>> |
react(EventBus selfType,
Selector<K> selector,
groovy.lang.Closure handler) |
static <T> Registration<String,Consumer<T>> |
react(EventBus selfType,
String selector,
groovy.lang.Closure handler) |
static <T> EventBus |
send(EventBus selfType,
Object key,
Event<T> obj,
groovy.lang.Closure handler) |
static <T> EventBus |
send(EventBus selfType,
Object key,
T obj) |
static <T> EventBus |
send(EventBus selfType,
Object key,
T obj,
groovy.lang.Closure handler) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setProperty(String property,
Object value) |
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectpublic Object invokeMethod(String method, Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectpublic void setProperty(String property, Object value)
setProperty in interface groovy.lang.GroovyObjectpublic static final String getARG_DATA()
public static final String getARG_TOPIC()
public static <K,T> Registration<K,Consumer<T>> react(EventBus selfType, Selector<K> selector, @DelegatesTo(strategy=1,value=ClosureEventConsumer.ReplyDecorator.class) groovy.lang.Closure handler)
public static <T> Registration<String,Consumer<T>> react(EventBus selfType, String selector, @DelegatesTo(strategy=1,value=ClosureEventConsumer.ReplyDecorator.class) groovy.lang.Closure handler)
public static <T> EventBus send(EventBus selfType, Object key, T obj, @DelegatesTo(strategy=1,value=ClosureEventConsumer.ReplyDecorator.class) groovy.lang.Closure handler)
public static <T> EventBus send(EventBus selfType, Object key, Event<T> obj, @DelegatesTo(strategy=1,value=ClosureEventConsumer.ReplyDecorator.class) groovy.lang.Closure handler)
public static <T,V> void call(Function<T,V> selfType, T value)
public static <T> void call(Consumer<T> selfType, T value)
public static <T> void call(Supplier<T> selfType)
Copyright © 2016. All rights reserved.