public final class Mina2Helper extends Object
Modifier and Type | Method and Description |
---|---|
static void |
writeBody(org.apache.mina.core.session.IoSession session,
Object body,
org.apache.camel.Exchange exchange,
long writeTimeout)
Asynchronously writes the given body to MINA session.
|
public static void writeBody(org.apache.mina.core.session.IoSession session, Object body, org.apache.camel.Exchange exchange, long writeTimeout) throws org.apache.camel.CamelExchangeException
session
- the MINA sessionbody
- the body to write (send)exchange
- the exchangewriteTimeout
- maximum amount of time we wait for the WriteFuture to complete (in milliseconds)org.apache.camel.CamelExchangeException
- is thrown if the body could not be written for some reasons
(eg remote connection is closed etc.)Apache Camel