Tabnine Logo
PushException
Code IndexAdd Tabnine to your IDE (free)

How to use
PushException
in
com.mpush.api.push

Best Java code snippets using com.mpush.api.push.PushException (Showing top 4 results out of 315)

origin: mpusher/mpush

return new ScheduledThreadPoolExecutor(push_task, new NamedPoolThreadFactory(T_PUSH_CENTER_TIMER),
    (r, e) -> {
      throw new PushException("one push task was rejected. task=" + r);
origin: mpusher/mpush

@Override
public FutureTask<PushResult> send(PushContext ctx) {
  if (ctx.isBroadcast()) {
    return send0(ctx.setUserId(null));
  } else if (ctx.getUserId() != null) {
    return send0(ctx);
  } else if (ctx.getUserIds() != null) {
    FutureTask<PushResult> task = null;
    for (String userId : ctx.getUserIds()) {
      task = send0(ctx.setUserId(userId));
    }
    return task;
  } else {
    throw new PushException("param error.");
  }
}
origin: com.github.mpusher/mpush-core

return new ScheduledThreadPoolExecutor(push_task, new NamedPoolThreadFactory(T_PUSH_CENTER_TIMER),
    (r, e) -> {
      throw new PushException("one push task was rejected. task=" + r);
origin: com.github.mpusher/mpush-client

@Override
public FutureTask<PushResult> send(PushContext ctx) {
  if (ctx.isBroadcast()) {
    return send0(ctx.setUserId(null));
  } else if (ctx.getUserId() != null) {
    return send0(ctx);
  } else if (ctx.getUserIds() != null) {
    FutureTask<PushResult> task = null;
    for (String userId : ctx.getUserIds()) {
      task = send0(ctx.setUserId(userId));
    }
    return task;
  } else {
    throw new PushException("param error.");
  }
}
com.mpush.api.pushPushException

Javadoc

Created by yxx on 2016/5/28.

Most used methods

  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (Timer)
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • CodeWhisperer alternatives
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