public class AsyncConnectionAdapter<T> extends Object implements AsyncConnection<T>, Stoppable
Connection into an AsyncConnection.| Constructor and Description |
|---|
AsyncConnectionAdapter(Connection<T> connection,
DispatchFailureHandler<? super T> dispatchFailureHandler,
ExecutorFactory executor,
Protocol<T>... protocols) |
public AsyncConnectionAdapter(Connection<T> connection, DispatchFailureHandler<? super T> dispatchFailureHandler, ExecutorFactory executor, Protocol<T>... protocols)
public void dispatch(T message)
AsyncConnectionpublic void dispatchTo(Dispatch<? super T> handler)
AsyncConnectiondispatchTo in interface AsyncConnection<T>handler - The handler.Copyright © 2013. All rights reserved