org.apache.camel.component.mina2
Class Mina2Helper
java.lang.Object
org.apache.camel.component.mina2.Mina2Helper
public final class Mina2Helper
- extends Object
Helper class used internally by camel-mina2 using Apache MINA.
Method Summary |
static void |
writeBody(org.apache.mina.core.session.IoSession session,
Object body,
org.apache.camel.Exchange exchange)
Asynchronously writes the given body to MINA session. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
writeBody
public static void writeBody(org.apache.mina.core.session.IoSession session,
Object body,
org.apache.camel.Exchange exchange)
throws org.apache.camel.CamelExchangeException
- Asynchronously writes the given body to MINA session. Will wait at most for
10 seconds until the body has been written.
- Parameters:
session
- the MINA sessionbody
- the body to write (send)exchange
- the exchange
- Throws:
org.apache.camel.CamelExchangeException
- is thrown if the body could not be written for some reasons
(eg remote connection is closed etc.)
Apache Camel