/** * Event is stored in an {@link IoSessionEventQueue} for later delivery to the next filter * in the chain when the handshake would have succeed. This will prevent the rest of * the filter chain from being affected by this filter internals. * * @param nextFilter the next filter in filter chain * @param session the session object */ @Override public void sessionIdle(NextFilter nextFilter, IoSession session, IdleStatus status) throws Exception { ProxyIoSession proxyIoSession = (ProxyIoSession) session.getAttribute(ProxyIoSession.PROXY_SESSION); proxyIoSession.getEventQueue().enqueueEventIfNecessary(new IoSessionEvent(nextFilter, session, status)); }
/** * Event is stored in an {@link IoSessionEventQueue} for later delivery to the next filter * in the chain when the handshake would have succeed. This will prevent the rest of * the filter chain from being affected by this filter internals. * * @param nextFilter the next filter in filter chain * @param session the session object */ @Override public void sessionOpened(NextFilter nextFilter, IoSession session) throws Exception { ProxyIoSession proxyIoSession = (ProxyIoSession) session.getAttribute(ProxyIoSession.PROXY_SESSION); proxyIoSession.getEventQueue().enqueueEventIfNecessary( new IoSessionEvent(nextFilter, session, IoSessionEventType.OPENED)); }
/** * Event is stored in an {@link IoSessionEventQueue} for later delivery to the next filter * in the chain when the handshake would have succeed. This will prevent the rest of * the filter chain from being affected by this filter internals. * * @param nextFilter the next filter in filter chain * @param session the session object */ @Override public void sessionClosed(NextFilter nextFilter, IoSession session) throws Exception { ProxyIoSession proxyIoSession = (ProxyIoSession) session.getAttribute(ProxyIoSession.PROXY_SESSION); proxyIoSession.getEventQueue().enqueueEventIfNecessary( new IoSessionEvent(nextFilter, session, IoSessionEventType.CLOSED)); } }
/** * Event is stored in an {@link IoSessionEventQueue} for later delivery to the next filter * in the chain when the handshake would have succeed. This will prevent the rest of * the filter chain from being affected by this filter internals. * * @param nextFilter the next filter in filter chain * @param session the session object */ @Override public void sessionIdle(NextFilter nextFilter, IoSession session, IdleStatus status) throws Exception { ProxyIoSession proxyIoSession = (ProxyIoSession) session.getAttribute(ProxyIoSession.PROXY_SESSION); proxyIoSession.getEventQueue().enqueueEventIfNecessary(new IoSessionEvent(nextFilter, session, status)); }
/** * Event is stored in an {@link IoSessionEventQueue} for later delivery to the next filter * in the chain when the handshake would have succeed. This will prevent the rest of * the filter chain from being affected by this filter internals. * * @param nextFilter the next filter in filter chain * @param session the session object */ @Override public void sessionClosed(NextFilter nextFilter, IoSession session) throws Exception { ProxyIoSession proxyIoSession = (ProxyIoSession) session.getAttribute(ProxyIoSession.PROXY_SESSION); proxyIoSession.getEventQueue().enqueueEventIfNecessary( new IoSessionEvent(nextFilter, session, IoSessionEventType.CLOSED)); } }
/** * Event is stored in an {@link IoSessionEventQueue} for later delivery to the next filter * in the chain when the handshake would have succeed. This will prevent the rest of * the filter chain from being affected by this filter internals. * * @param nextFilter the next filter in filter chain * @param session the session object */ @Override public void sessionOpened(NextFilter nextFilter, IoSession session) throws Exception { ProxyIoSession proxyIoSession = (ProxyIoSession) session.getAttribute(ProxyIoSession.PROXY_SESSION); proxyIoSession.getEventQueue().enqueueEventIfNecessary( new IoSessionEvent(nextFilter, session, IoSessionEventType.OPENED)); }
/** * Event is stored in an {@link IoSessionEventQueue} for later delivery to the next filter * in the chain when the handshake would have succeed. This will prevent the rest of * the filter chain from being affected by this filter internals. * * @param nextFilter the next filter in filter chain * @param session the session object */ @Override public void sessionIdle(NextFilter nextFilter, IoSession session, IdleStatus status) throws Exception { ProxyIoSession proxyIoSession = (ProxyIoSession) session .getAttribute(ProxyIoSession.PROXY_SESSION); proxyIoSession.getEventQueue().enqueueEventIfNecessary( new IoSessionEvent(nextFilter, session, status)); }
/** * Event is stored in an {@link IoSessionEventQueue} for later delivery to the next filter * in the chain when the handshake would have succeed. This will prevent the rest of * the filter chain from being affected by this filter internals. * * @param nextFilter the next filter in filter chain * @param session the session object */ @Override public void sessionClosed(NextFilter nextFilter, IoSession session) throws Exception { ProxyIoSession proxyIoSession = (ProxyIoSession) session .getAttribute(ProxyIoSession.PROXY_SESSION); proxyIoSession.getEventQueue().enqueueEventIfNecessary( new IoSessionEvent(nextFilter, session, IoSessionEventType.CLOSED)); } }
/** * Event is stored in an {@link IoSessionEventQueue} for later delivery to the next filter * in the chain when the handshake would have succeed. This will prevent the rest of * the filter chain from being affected by this filter internals. * * @param nextFilter the next filter in filter chain * @param session the session object */ @Override public void sessionOpened(NextFilter nextFilter, IoSession session) throws Exception { ProxyIoSession proxyIoSession = (ProxyIoSession) session .getAttribute(ProxyIoSession.PROXY_SESSION); proxyIoSession.getEventQueue().enqueueEventIfNecessary( new IoSessionEvent(nextFilter, session, IoSessionEventType.OPENED)); }
/** * Signals that the handshake has finished. */ protected final void setHandshakeComplete() { synchronized (this) { handshakeComplete = true; } ProxyIoSession proxyIoSession = getProxyIoSession(); proxyIoSession.getConnector().fireConnected(proxyIoSession.getSession()).awaitUninterruptibly(); LOGGER.debug(" handshake completed"); // Connected OK try { proxyIoSession.getEventQueue().flushPendingSessionEvents(); flushPendingWriteRequests(); } catch (Exception ex) { LOGGER.error("Unable to flush pending write requests", ex); } }
/** * Signals that the handshake has finished. */ protected final void setHandshakeComplete() { synchronized (this) { handshakeComplete = true; } ProxyIoSession proxyIoSession = getProxyIoSession(); proxyIoSession.getConnector().fireConnected(proxyIoSession.getSession()).awaitUninterruptibly(); LOGGER.debug(" handshake completed"); // Connected OK try { proxyIoSession.getEventQueue().flushPendingSessionEvents(); flushPendingWriteRequests(); } catch (Exception ex) { LOGGER.error("Unable to flush pending write requests", ex); } }
/** * Signals that the handshake has finished. */ protected final void setHandshakeComplete() { synchronized (this) { handshakeComplete = true; } ProxyIoSession proxyIoSession = getProxyIoSession(); proxyIoSession.getConnector() .fireConnected(proxyIoSession.getSession()) .awaitUninterruptibly(); LOGGER.debug(" handshake completed"); // Connected OK try { proxyIoSession.getEventQueue().flushPendingSessionEvents(); flushPendingWriteRequests(); } catch (Exception ex) { LOGGER.error("Unable to flush pending write requests", ex); } }
proxyIoSession.getEventQueue().enqueueEventIfNecessary( new IoSessionEvent(nextFilter, session, IoSessionEventType.CREATED));
proxyIoSession.getEventQueue().enqueueEventIfNecessary( new IoSessionEvent(nextFilter, session, IoSessionEventType.CREATED));
proxyIoSession.getEventQueue().enqueueEventIfNecessary( new IoSessionEvent(nextFilter, session, IoSessionEventType.CREATED));