congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ConnectionCloseEvent.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.mpush.api.event.ConnectionCloseEvent
constructor

Best Java code snippets using com.mpush.api.event.ConnectionCloseEvent.<init> (Showing top 8 results out of 315)

origin: mpusher/mpush

  @Override
  public void channelInactive(ChannelHandlerContext ctx) throws Exception {
    Connection connection = connectionManager.removeAndClose(ctx.channel());
    EventBus.post(new ConnectionCloseEvent(connection));
    Logs.CONN.info("client disconnected conn={}", connection);
  }
}
origin: mpusher/mpush

  @Override
  public void channelInactive(ChannelHandlerContext ctx) throws Exception {
    Connection connection = connectionManager.removeAndClose(ctx.channel());
    EventBus.post(new ConnectionCloseEvent(connection));
    Logs.CONN.info("client disconnected conn={}", connection);
  }
}
origin: mpusher/mpush

@Override
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
  int clientNum = STATISTICS.clientNum.decrementAndGet();
  connection.close();
  EventBus.post(new ConnectionCloseEvent(connection));
  LOGGER.info("client disconnect channel={}, clientNum={}", connection, clientNum);
}
origin: mpusher/mpush

  @Override
  public void channelInactive(ChannelHandlerContext ctx) throws Exception {
    Connection connection = connectionManager.removeAndClose(ctx.channel());
    EventBus.post(new ConnectionCloseEvent(connection));
    Logs.CONN.info("client disconnected conn={}", connection);
  }
}
origin: com.github.mpusher/mpush-client

  @Override
  public void channelInactive(ChannelHandlerContext ctx) throws Exception {
    Connection connection = connectionManager.removeAndClose(ctx.channel());
    EventBus.post(new ConnectionCloseEvent(connection));
    Logs.CONN.info("client disconnected conn={}", connection);
  }
}
origin: com.github.mpusher/mpush-core

  @Override
  public void channelInactive(ChannelHandlerContext ctx) throws Exception {
    Connection connection = connectionManager.removeAndClose(ctx.channel());
    EventBus.post(new ConnectionCloseEvent(connection));
    Logs.CONN.info("client disconnected conn={}", connection);
  }
}
origin: com.github.mpusher/mpush-client

@Override
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
  int clientNum = STATISTICS.clientNum.decrementAndGet();
  connection.close();
  EventBus.post(new ConnectionCloseEvent(connection));
  LOGGER.info("client disconnect channel={}, clientNum={}", connection, clientNum);
}
origin: com.github.mpusher/mpush-core

  @Override
  public void channelInactive(ChannelHandlerContext ctx) throws Exception {
    Connection connection = connectionManager.removeAndClose(ctx.channel());
    EventBus.post(new ConnectionCloseEvent(connection));
    Logs.CONN.info("client disconnected conn={}", connection);
  }
}
com.mpush.api.eventConnectionCloseEvent<init>

Popular methods of ConnectionCloseEvent

    Popular in Java

    • Parsing JSON documents to java classes using gson
    • addToBackStack (FragmentTransaction)
    • setScale (BigDecimal)
    • startActivity (Activity)
    • Component (java.awt)
      A component is an object having a graphical representation that can be displayed on the screen and t
    • Container (java.awt)
      A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
    • InputStream (java.io)
      A readable source of bytes.Most clients will use input streams that read data from the file system (
    • Enumeration (java.util)
      A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
    • Callable (java.util.concurrent)
      A task that returns a result and may throw an exception. Implementors define a single method with no
    • Response (javax.ws.rs.core)
      Defines the contract between a returned instance and the runtime when an application needs to provid
    • Top 17 Plugins for Android Studio
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now