Package org.apache.camel.component.mina
Class MinaHelper
- java.lang.Object
-
- org.apache.camel.component.mina.MinaHelper
-
public final class MinaHelper extends Object
Helper class used internally by camel-mina using Apache MINA.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidwriteBody(org.apache.mina.core.session.IoSession session, Object body, org.apache.camel.Exchange exchange, long writeTimeout)Asynchronously writes the given body to MINA session.
-
-
-
Method Detail
-
writeBody
public static void writeBody(org.apache.mina.core.session.IoSession session, Object body, org.apache.camel.Exchange exchange, long writeTimeout) throws org.apache.camel.CamelExchangeExceptionAsynchronously writes the given body to MINA session. Will wait at most for {{ writeTimeout }} milliseconds until the body has been written.- Parameters:
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)- Throws:
org.apache.camel.CamelExchangeException- is thrown if the body could not be written for some reasons (eg remote connection is closed etc.)
-
-