public void tryCompleteClose() { synchronized (lock) { if (null != closeFuture) { closeFuture.trySetResult(null); } } }