congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
PushListenerFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
PushListenerFactory
in
com.mpush.api.spi.push

Best Java code snippets using com.mpush.api.spi.push.PushListenerFactory (Showing top 3 results out of 315)

origin: mpusher/mpush

  @SuppressWarnings("unchecked")
  static <M extends IPushMessage> PushListener<M> create() {
    return (PushListener<M>) SpiLoader.load(PushListenerFactory.class).get();
  }
}
origin: mpusher/mpush

@Override
protected void doStart(Listener listener) throws Throwable {
  this.pushListener = PushListenerFactory.create();
  this.pushListener.init(mPushServer);
  if (CC.mp.net.udpGateway() || CC.mp.thread.pool.push_task > 0) {
    executor = new CustomJDKExecutor(mPushServer.getMonitor().getThreadPoolManager().getPushTaskTimer());
  } else {//实际情况使用EventLoo并没有更快,还有待测试
    executor = new NettyEventLoopExecutor();
  }
  MBeanRegistry.getInstance().register(new PushCenterBean(taskNum), null);
  ackTaskQueue.start();
  logger.info("push center start success");
  listener.onSuccess();
}
origin: com.github.mpusher/mpush-core

@Override
protected void doStart(Listener listener) throws Throwable {
  this.pushListener = PushListenerFactory.create();
  this.pushListener.init(mPushServer);
  if (CC.mp.net.udpGateway() || CC.mp.thread.pool.push_task > 0) {
    executor = new CustomJDKExecutor(mPushServer.getMonitor().getThreadPoolManager().getPushTaskTimer());
  } else {//实际情况使用EventLoo并没有更快,还有待测试
    executor = new NettyEventLoopExecutor();
  }
  MBeanRegistry.getInstance().register(new PushCenterBean(taskNum), null);
  ackTaskQueue.start();
  logger.info("push center start success");
  listener.onSuccess();
}
com.mpush.api.spi.pushPushListenerFactory

Javadoc

Created by ohun on 2016/12/24.

Most used methods

  • create
  • get

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JTextField (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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