Search in sources :

Example 6 with CloseFuture

use of org.apache.mina.core.future.CloseFuture in project bigbluebutton by bigbluebutton.

the class BlockStreamEventMessageHandler method closeSession.

private void closeSession(IoSession session) {
    String room = (String) session.getAttribute(ROOM, null);
    if (room != null) {
        log.info("Closing session [" + room + "]. ");
    } else {
        log.info("Cannot determine session to close.");
    }
    CloseFuture future = session.close(true);
}
Also used : CloseFuture(org.apache.mina.core.future.CloseFuture)

Aggregations

CloseFuture (org.apache.mina.core.future.CloseFuture)6 InetSocketAddress (java.net.InetSocketAddress)2 IOException (java.io.IOException)1 ConnectException (java.net.ConnectException)1 SocketAddress (java.net.SocketAddress)1 UnresolvedAddressException (java.nio.channels.UnresolvedAddressException)1 CountDownLatch (java.util.concurrent.CountDownLatch)1 BinaryAttributeDetector (org.apache.directory.api.ldap.codec.api.BinaryAttributeDetector)1 DefaultConfigurableBinaryAttributeDetector (org.apache.directory.api.ldap.codec.api.DefaultConfigurableBinaryAttributeDetector)1 LdapMessageContainer (org.apache.directory.api.ldap.codec.api.LdapMessageContainer)1 MessageDecorator (org.apache.directory.api.ldap.codec.api.MessageDecorator)1 SchemaBinaryAttributeDetector (org.apache.directory.api.ldap.codec.api.SchemaBinaryAttributeDetector)1 LdapOtherException (org.apache.directory.api.ldap.model.exception.LdapOtherException)1 Message (org.apache.directory.api.ldap.model.message.Message)1 InvalidConnectionException (org.apache.directory.ldap.client.api.exception.InvalidConnectionException)1 AddFuture (org.apache.directory.ldap.client.api.future.AddFuture)1 BindFuture (org.apache.directory.ldap.client.api.future.BindFuture)1 CompareFuture (org.apache.directory.ldap.client.api.future.CompareFuture)1 DeleteFuture (org.apache.directory.ldap.client.api.future.DeleteFuture)1 ExtendedFuture (org.apache.directory.ldap.client.api.future.ExtendedFuture)1