public interface AsyncConnection<T> extends Dispatch<T>
A messaging endpoint which allows push-style dispatch and receive.
Implementations must be thread-safe.
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(T message)
Dispatches a message to this connection.
|
void |
dispatchTo(Dispatch<? super T> handler)
Adds a handler to receive incoming messages.
|
void dispatch(T message)
Copyright © 2013. All rights reserved