Package org.apache.sshd.common.future

Examples of org.apache.sshd.common.future.SshFuture.addListener()


            } else {
                if (state.compareAndSet(0, GRACEFUL)) {
                    log.debug("Closing {} gracefully", this);
                    SshFuture grace = doCloseGracefully();
                    if (grace != null) {
                        grace.addListener(new SshFutureListener() {
                            public void operationComplete(SshFuture future) {
                                if (state.compareAndSet(GRACEFUL, IMMEDIATE)) {
                                    doCloseImmediately();
                                }
                            }
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.