Tabnine Logo
PushException.<init>
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using com.mpush.api.push.PushException.<init> (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<init>

Popular methods of PushException

    Popular in Java

    • Creating JSON documents from java classes using gson
    • setRequestProperty (URLConnection)
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • getSystemService (Context)
    • String (java.lang)
    • URI (java.net)
      A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
    • HashMap (java.util)
      HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
    • JLabel (javax.swing)
    • 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
    • Location (org.springframework.beans.factory.parsing)
      Class that models an arbitrary location in a Resource.Typically used to track the location of proble
    • Top plugins for WebStorm
    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