Codota Logo
OnWebSocketClose.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.eclipse.jetty.websocket.api.annotations.OnWebSocketClose
constructor

Best Java code snippets using org.eclipse.jetty.websocket.api.annotations.OnWebSocketClose.<init> (Showing top 20 results out of 369)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-framework

@OnWebSocketClose
public void onWebSocketClose(int statusCode, String reason) {
  CloseStatus closeStatus = new CloseStatus(statusCode, reason);
  try {
    this.webSocketHandler.afterConnectionClosed(this.wsSession, closeStatus);
  }
  catch (Throwable ex) {
    if (logger.isWarnEnabled()) {
      logger.warn("Unhandled exception after connection closed for " + this, ex);
    }
  }
}
origin: gocd/gocd

@OnWebSocketClose
public void onClose(int closeCode, String closeReason) {
  LOG.debug("{} closed. code: {}, reason: {}", webSocketSessionHandler.getSessionName(), closeCode, closeReason);
}
origin: gocd/gocd

@OnWebSocketClose
public void onClose(int status, String reason) {
  socketHealthService.deregister(this);
}
origin: spring-projects/spring-framework

@OnWebSocketClose
public void onWebSocketClose(int statusCode, String reason) {
  if (this.delegateSession != null) {
    this.delegateSession.handleClose(new CloseStatus(statusCode, reason));
  }
}
origin: igniterealtime/Openfire

@OnWebSocketClose
public void onClose(int statusCode, String reason)
{
  closeSession();
}
origin: jphp-group/jphp

@OnWebSocketClose
public void onClose(Session session, int statusCode, String reason) {
  if (param.onClose != null) {
    param.onClose.callAny(session, statusCode, reason);
  }
}
origin: konsoletyper/teavm

@OnWebSocketClose
public void close(int code, String reason) {
  closed = true;
  if (!target.closed) {
    target.closed = true;
    session.close(code, reason);
  }
}
origin: konsoletyper/teavm

@OnWebSocketClose
public void close(Session session, int code, String reason) {
  ProgressHandlerImpl handler = progressHandlerMap.remove(session);
  servlet.removeProgressHandler(handler);
}
origin: gocd/gocd

@OnWebSocketClose
public void onClose(int closeCode, String closeReason) {
  LOGGER.debug("{} closed. code: {}, reason: {}", sessionName(), closeCode, closeReason);
  handler.remove(this);
}
origin: andsel/moquette

@OnWebSocketClose
public void onClose(int statusCode, String reason) {
  System.out.printf("Connection closed: %d - %s%n", statusCode, reason);
}
origin: opensourceBIM/BIMserver

@OnWebSocketClose
public void onClose(int statusCode, String reason) {
  this.session = null;
}
origin: jamesagnew/hapi-fhir

@OnWebSocketClose
public void onClose(int statusCode, String reason) {
  ourLog.info("Received CLOSE status={} reason={}", statusCode, reason);
}
origin: dremio/dremio-oss

@OnWebSocketClose
public void onClose(Session session, int statusCode, String reason) {
 logger.debug("Socket closed with code {}", statusCode);
 sockets.remove(socketId);
}
origin: Fanping/iveely.search

@OnWebSocketClose
public void onClose(int statusCode, String reason) {
 System.out.printf("Connection closed: %d - %s%n", statusCode, reason);
 this.session = null;
 this.closeLatch.countDown();
}
origin: geogebra/geogebra

@OnWebSocketClose
public void onClose(int statusCode, String reason) {
  System.out.printf("Connection closed: %d - %s%n", Integer.valueOf(statusCode), reason);
  //this.session = null;
}
 
origin: Kurento/kurento-java

@OnWebSocketClose
public void onClose(int statusCode, String closeReason) {
 log.debug("Websocket disconnected because '{}' (status code {})", closeReason, statusCode);
 handleReconnectDisconnection(statusCode, closeReason);
}
origin: org.apache.camel/camel-websocket

@OnWebSocketClose
public void onClose(int closeCode, String message) {
  LOG.trace("onClose {} {}", closeCode, message);
  sync.removeSocket(this);
}
origin: org.springframework/spring-websocket

@OnWebSocketClose
public void onWebSocketClose(int statusCode, String reason) {
  CloseStatus closeStatus = new CloseStatus(statusCode, reason);
  try {
    this.webSocketHandler.afterConnectionClosed(this.wsSession, closeStatus);
  }
  catch (Throwable ex) {
    if (logger.isWarnEnabled()) {
      logger.warn("Unhandled exception after connection closed for " + this, ex);
    }
  }
}
origin: dhanji/sitebricks

@OnWebSocketClose
public void onWebSocketClose(int statusCode, String reason) {
 try {
  channelListener.get().disconnected(this);
 } finally {
  switchboard.disconnect(socketId);
 }
}
origin: org.springframework/spring-web-reactive

@OnWebSocketClose
public void onWebSocketClose(int statusCode, String reason) {
  if (this.delegateSession != null) {
    this.delegateSession.handleClose(new CloseStatus(statusCode, reason));
  }
}
org.eclipse.jetty.websocket.api.annotationsOnWebSocketClose<init>

Popular methods of OnWebSocketClose

    Popular in Java

    • Creating JSON documents from java classes using gson
    • scheduleAtFixedRate (ScheduledExecutorService)
    • setScale (BigDecimal)
      Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
    • orElseThrow (Optional)
    • File (java.io)
      An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
    • System (java.lang)
      Provides access to system-related information and resources including standard input and output. Ena
    • TreeSet (java.util)
      A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
    • ConcurrentHashMap (java.util.concurrent)
      A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
    • Executors (java.util.concurrent)
      Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
    • Get (org.apache.hadoop.hbase.client)
      Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now