Package org.apache.mina.core.service

Examples of org.apache.mina.core.service.IoAcceptor.unbind()


        //
        // minaRegistry.getAcceptor( service.getTransportType() )
        //                       .setDisconnectClientsOnUnbind( false );
        // -------------------------------------------------------------------
        // This might not work, either.
        acceptor.unbind( requestor.getIoSession().getServiceAddress() );

        // -------------------------------------------------------------------
        // synchronously send a NoD to clients that are not aware of this resp
        // after sending the NoD the client is disconnected if still connected
        // -------------------------------------------------------------------
View Full Code Here


        session.write(new TennisBall(10));

        // Wait until the match ends.
        session.getCloseFuture().awaitUninterruptibly();

        acceptor.unbind();
    }
}
View Full Code Here

        //
        // minaRegistry.getAcceptor( service.getTransportType() )
        //                       .setDisconnectClientsOnUnbind( false );
        // -------------------------------------------------------------------
        // This might not work, either.
        acceptor.unbind( requestor.getIoSession().getServiceAddress() );

        // -------------------------------------------------------------------
        // synchronously send a NoD to clients that are not aware of this resp
        // after sending the NoD the client is disconnected if still connected
        // -------------------------------------------------------------------
View Full Code Here

        //
        // minaRegistry.getAcceptor( service.getTransportType() )
        //                       .setDisconnectClientsOnUnbind( false );
        // -------------------------------------------------------------------
        // This might not work, either.
        acceptor.unbind( requestor.getIoSession().getServiceAddress() );

        // -------------------------------------------------------------------
        // synchronously send a NoD to clients that are not aware of this resp
        // after sending the NoD the client is disconnected if still connected
        // -------------------------------------------------------------------
View Full Code Here

        //
        // minaRegistry.getAcceptor( service.getTransportType() )
        //                       .setDisconnectClientsOnUnbind( false );
        // -------------------------------------------------------------------
        // This might not work, either.
        acceptor.unbind( requestor.getIoSession().getServiceAddress() );

        // -------------------------------------------------------------------
        // synchronously send a NoD to clients that are not aware of this resp
        // after sending the NoD the client is disconnected if still connected
        // -------------------------------------------------------------------
View Full Code Here

        session.write(new TennisBall(10));

        // Wait until the match ends.
        session.getCloseFuture().awaitUninterruptibly();

        acceptor.unbind();
    }
}
View Full Code Here

                    {
                    }
                    else if ( input == JOptionPane.NO_OPTION )
                    {
                        GracefulShutdownHandler.sendNoticeOfDisconnect( sessions, requestor );
                        acceptor.unbind( requestor.getServiceAddress() );
                        isServiceBound = false;
                        unbindItem.setEnabled( isServiceBound );
                        bindItem.setEnabled( !isServiceBound );
                        JOptionPane.showMessageDialog( SessionsFrame.this, "Ldap service for "
                            + requestor.getLocalAddress() + " has been successfully unbound.", "Success!",
View Full Code Here

                        LOG.debug( "GracefulShutdown parameters captured." );
                        int timeOffline = dialog.getTimeOffline();
                        int delay = dialog.getDelay();
                        GracefulDisconnect graceful = new GracefulDisconnect( timeOffline, delay );
                        GracefulShutdownHandler.sendGracefulDisconnect( sessions, graceful, requestor );
                        acceptor.unbind( requestor.getServiceAddress() );
                        isServiceBound = false;
                        unbindItem.setEnabled( isServiceBound );
                        bindItem.setEnabled( !isServiceBound );

                        // do progress dialog with bypass button to wait for delay time
View Full Code Here

        //
        // minaRegistry.getAcceptor( service.getTransportType() )
        //                       .setDisconnectClientsOnUnbind( false );
        // -------------------------------------------------------------------
        // This might not work, either.
        acceptor.unbind( requestor.getIoSession().getServiceAddress() );

        // -------------------------------------------------------------------
        // synchronously send a NoD to clients that are not aware of this resp
        // after sending the NoD the client is disconnected if still connected
        // -------------------------------------------------------------------
View Full Code Here

        //
        // minaRegistry.getAcceptor( service.getTransportType() )
        //                       .setDisconnectClientsOnUnbind( false );
        // -------------------------------------------------------------------
        // This might not work, either.
        acceptor.unbind( requestor.getIoSession().getServiceAddress() );

        // -------------------------------------------------------------------
        // synchronously send a NoD to clients that are not aware of this resp
        // after sending the NoD the client is disconnected if still connected
        // -------------------------------------------------------------------
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.