Package org.cometd.bayeux.server

Examples of org.cometd.bayeux.server.ServerSession.disconnect()


                    channel.publish(serverSession, mutable);
                }
            } finally {
                if (disconnectLocalSession && serverSession.isLocalSession()) {
                    LOG.trace("Disconnection local session {}", serverSession);
                    serverSession.disconnect();
                }
            }
        }

        private void logDelivery(Exchange exchange, ServerChannel channel) {
View Full Code Here


                    channel.publish(serverSession, mutable);
                }
            } finally {
                if (disconnectLocalSession && serverSession.isLocalSession()) {
                    LOG.trace("Disconnection local session {}", serverSession);
                    serverSession.disconnect();
                }
            }
        }

        private void logDelivery(Exchange exchange, ServerChannel channel) {
View Full Code Here

        }

        public void disconnect(String sessionId)
        {
            ServerSession session = getBayeux().getSession(sessionId);
            session.disconnect();
        }
    }

    public static class DeliverAndServerSideDisconnectService extends AbstractService
    {
View Full Code Here

            session.batch(new Runnable()
            {
                public void run()
                {
                    session.deliver(getServerSession(), kickMessage);
                    session.disconnect();
                }
            });
        }
    }
}
View Full Code Here

    }

    ServerSession client = handler.getServerSessionFromSiteid(siteId);
    if (client != null) {
      log.info("ServerSession found about to call disconnect");
      client.disconnect();
    } else {
      log.severe("ServerSession not found from handler delegate sessionId = "
          + sessionId);
    }
  }
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.