| Package | Description |
|---|---|
| org.noear.dami2.bus | |
| org.noear.dami2.bus.receivable |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Event<P>
事件实体
|
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleEvent<P>
事件简单的实现
|
| Modifier and Type | Method and Description |
|---|---|
default <P> Result<P> |
DamiBus.send(Event<P> event)
发送事件
|
<P> Result<P> |
DamiBusImpl.send(Event<P> event,
Consumer<P> fallback)
发送事件
|
<P> Result<P> |
DamiBus.send(Event<P> event,
Consumer<P> fallback)
发送事件
|
default <P> Result<P> |
DamiBus.send(String topic,
P payload)
发送事件
|
<P> Result<P> |
DamiBusImpl.send(String topic,
P payload,
Consumer<P> fallback)
发送事件
|
<P> Result<P> |
DamiBus.send(String topic,
P payload,
Consumer<P> fallback)
发送事件
|
default Result<P> |
Result.thenConsume(Consumer<Result<P>> consumer)
(有结果后)然后消费
|
| Modifier and Type | Method and Description |
|---|---|
default Result<P> |
Result.thenConsume(Consumer<Result<P>> consumer)
(有结果后)然后消费
|
| Modifier and Type | Method and Description |
|---|---|
default <D,R> Result<CallPayload<D,R>> |
CallBusExtension.callAsResult(String topic,
D data)
发送调用事件
|
default <D,R> Result<CallPayload<D,R>> |
CallBusExtension.callAsResult(String topic,
D data,
Consumer<CompletableFuture<R>> fallback)
发送调用事件
|
Copyright © 2025. All rights reserved.