当前位置: 首页>>代码示例>>Java>>正文


Java SerializationInl类代码示例

本文整理汇总了Java中com.vangav.backend.content.formatting.SerializationInl的典型用法代码示例。如果您正苦于以下问题:Java SerializationInl类的具体用法?Java SerializationInl怎么用?Java SerializationInl使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


SerializationInl类属于com.vangav.backend.content.formatting包,在下文中一共展示了SerializationInl类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: JavaEmailDispatchable

import com.vangav.backend.content.formatting.SerializationInl; //导入依赖的package包/类
/**
 * Constructor JavaEmailDispatchable
 * initializes through serializing a JavaEmail Object
 * @param javaEmail
 * @return new JavaEmailDispatchable Object
 * @throws Exception
 */
@JsonIgnore
public JavaEmailDispatchable (
  JavaEmail javaEmail) throws Exception {
  
  this.type = "java_email";
  
  this.serialized_message =
    SerializationInl.serializeObject(javaEmail);
}
 
开发者ID:vangav,项目名称:vos_backend,代码行数:17,代码来源:JavaEmailDispatchable.java

示例2: MailGunEmailDispatchable

import com.vangav.backend.content.formatting.SerializationInl; //导入依赖的package包/类
/**
 * Constructor MailGunEmailDispatchable
 * initializes through serializing a MailGunEmail Object
 * @param mailGunEmail
 * @return new MailGunEmailDispatchable Object
 * @throws Exception
 */
@JsonIgnore
public MailGunEmailDispatchable (
  MailGunEmail mailGunEmail) throws Exception {
  
  this.type = "mail_gun_email";
  
  this.serialized_message =
    SerializationInl.serializeObject(mailGunEmail);
}
 
开发者ID:vangav,项目名称:vos_backend,代码行数:17,代码来源:MailGunEmailDispatchable.java

示例3: TwilioMmsDispatchable

import com.vangav.backend.content.formatting.SerializationInl; //导入依赖的package包/类
/**
 * Constructor TwilioMmsDispatchable
 * initializes through serializing a TwilioMms Object
 * @param twilioMms
 * @return new TwilioMmsDispatchable Object
 * @throws Exception
 */
@JsonIgnore
public TwilioMmsDispatchable (TwilioMms twilioMms) throws Exception {
  
  this.type = "twilio_mms";
  
  this.serialized_message =
    SerializationInl.serializeObject(twilioMms);
}
 
开发者ID:vangav,项目名称:vos_backend,代码行数:16,代码来源:TwilioMmsDispatchable.java

示例4: TwilioSmsDispatchable

import com.vangav.backend.content.formatting.SerializationInl; //导入依赖的package包/类
/**
 * Constructor TwilioSmsDispatchable
 * initializes through serializing a TwilioSms Object
 * @param twilioSms
 * @return new TwilioSmsDispatchable Object
 * @throws Exception
 */
@JsonIgnore
public TwilioSmsDispatchable (TwilioSms twilioSms) throws Exception {
  
  this.type = "twilio_sms";
  
  this.serialized_message =
    SerializationInl.serializeObject(twilioSms);
}
 
开发者ID:vangav,项目名称:vos_backend,代码行数:16,代码来源:TwilioSmsDispatchable.java

示例5: QueryDispatchable

import com.vangav.backend.content.formatting.SerializationInl; //导入依赖的package包/类
/**
 * Constructor QueryDispatchable
 * initializes through serializing a Query
 * @param query
 * @return new QueryDispatchable Object
 * @throws Exception
 */
@JsonIgnore
public QueryDispatchable (Query query) throws Exception {
  
  this.type = "cassandra_query";

  this.serialized_message =
    SerializationInl.serializeObject(new WorkerQuery(query) );
}
 
开发者ID:vangav,项目名称:vos_backend,代码行数:16,代码来源:QueryDispatchable.java

示例6: fromQueryDispatchable

import com.vangav.backend.content.formatting.SerializationInl; //导入依赖的package包/类
/**
 * fromQueryDispatchable
 * @param queryDispatchable
 * @return new WorkerQuery Object reflecting param queryDispatchable
 * @throws Exception
 */
public static WorkerQuery fromQueryDispatchable (
  QueryDispatchable queryDispatchable) throws Exception {
  
  return
    SerializationInl.<WorkerQuery>deserializeObject(
      queryDispatchable.serialized_message);
}
 
开发者ID:vangav,项目名称:vos_backend,代码行数:14,代码来源:WorkerQuery.java

示例7: AppleNotificationDispatchable

import com.vangav.backend.content.formatting.SerializationInl; //导入依赖的package包/类
/**
 * Constructor AppleNotificationDispatchable
 * initializes through serializing an AppleNotification
 * @param appleNotification
 * @return new AppleNotificationDispatchable Object
 * @throws Exception
 */
@JsonIgnore
public AppleNotificationDispatchable (
  AppleNotification appleNotification) throws Exception {
  
  this.type = "apple_notification";
  
  this.serialized_message =
    SerializationInl.serializeObject(appleNotification);
}
 
开发者ID:vangav,项目名称:vos_backend,代码行数:17,代码来源:AppleNotificationDispatchable.java

示例8: AndroidNotificationDispatchable

import com.vangav.backend.content.formatting.SerializationInl; //导入依赖的package包/类
/**
 * Constructor AndroidNotificationDispatchable
 * initialized through serializing an AndroidNotification
 * @param androidNotification
 * @return new AndroidNotificationDispatchable Object
 * @throws Exception
 */
@JsonIgnore
public AndroidNotificationDispatchable (
  AndroidNotification androidNotification) throws Exception {
  
  this.type = "android_notification";
  
  this.serialized_message =
    SerializationInl.serializeObject(androidNotification);
}
 
开发者ID:vangav,项目名称:vos_backend,代码行数:17,代码来源:AndroidNotificationDispatchable.java

示例9: process

import com.vangav.backend.content.formatting.SerializationInl; //导入依赖的package包/类
@Override
protected void process(CycleLog cycleLog) throws Exception {
  
  // get cycle's planned start calendar
  Calendar plannedStartCalendar =
    CalendarAndDateOperationsInl.getCalendarFromUnixTime(
      cycleLog.getPlannedStartTime() );
  
  // -1 hour -- this cycle should check for the jobs from the past hour
  plannedStartCalendar.set(Calendar.HOUR_OF_DAY, -1);
  
  // query all jobs within cycle's hour
  ResultSet resultSet =
    HourlyCurrentJobs.i().executeSyncSelect(
      CalendarFormatterInl.concatCalendarFields(
        plannedStartCalendar,
        Calendar.YEAR,
        Calendar.MONTH,
        Calendar.DAY_OF_MONTH,
        Calendar.HOUR_OF_DAY) );
  
  // to to fetch each job
  ResultSet currJobResultSet;
  
  String currSerializedJob;
  Job currJob;
  
  // retry executing every found job (failed to execute job)
  for (Row row : resultSet) {
    
    if (resultSet.getAvailableWithoutFetching() <=
        Constants.kCassandraPrefetchLimit &&
        resultSet.isFullyFetched() == false) {
      
      // this is asynchronous
      resultSet.fetchMoreResults();
    }
    
    // select job
    currJobResultSet =
      CurrentJobs.i().executeSyncSelect(
        row.getUUID(HourlyCurrentJobs.kJobIdColumnName) );
    
    // couldn't get job?
    if (currJobResultSet.isExhausted() == true) {
      
      // may need to log an exception here depending how how this service,
      //   the main service and the dispense work together - in terms of sync
      continue;
    }
    
    // get serialized job
    currSerializedJob =
      EncodingInl.decodeStringFromByteBuffer(
        currJobResultSet.one().getBytes(
          CurrentJobs.kJobColumnName) );
    
    // deserialize
    currJob = SerializationInl.<Job>deserializeObject(currSerializedJob);
    
    // execute job (retry)
    JobsExecutorInl.executeJobsAsync(currJob);
  }
}
 
开发者ID:vangav,项目名称:vos_instagram_jobs,代码行数:65,代码来源:RestJobs.java

示例10: fromJavaEmailDispatchable

import com.vangav.backend.content.formatting.SerializationInl; //导入依赖的package包/类
/**
 * fromJavaEmailDispatchable
 * usually used on the worker instance side where dispatch messages are
 *   received then gets executed
 * @param javaEmailDispatchable is a JSON Object with a serialized
 *          version of a JavaEmail Object
 * @return the deserialized version of the JavaEmail Object
 * @throws Exception
 */
public static JavaEmail fromJavaEmailDispatchable (
  JavaEmailDispatchable javaEmailDispatchable) throws Exception {
  
  return
    SerializationInl.<JavaEmail>deserializeObject(
      javaEmailDispatchable.serialized_message);
}
 
开发者ID:vangav,项目名称:vos_backend,代码行数:17,代码来源:JavaEmail.java

示例11: fromMailGunEmailDispatchable

import com.vangav.backend.content.formatting.SerializationInl; //导入依赖的package包/类
/**
 * fromMailGunEmailDispatchable
 * usually used on the worker instance side where dispatch messages are
 *   received and gets executed
 * @param mailGunEmailDispatchable is a JSON Object with a serialized
 *          version of a MailGunEmail Object
 * @return the deserialized version of the MailGunEmail Object
 * @throws Exception
 */
public static MailGunEmail fromMailGunEmailDispatchable (
  MailGunEmailDispatchable mailGunEmailDispatchable) throws Exception {
  
  return
    SerializationInl.<MailGunEmail>deserializeObject(
      mailGunEmailDispatchable.serialized_message);
}
 
开发者ID:vangav,项目名称:vos_backend,代码行数:17,代码来源:MailGunEmail.java

示例12: fromTwilioSmsDispatchable

import com.vangav.backend.content.formatting.SerializationInl; //导入依赖的package包/类
/**
 * fromTwilioSmsDispatchable
 * usually used on the worker instance side where dispatch messages are
 *   received then gets executed
 * @param twilioSmsDispatchable is a JSON Object with a serialized
 *          version of a TwilioSms Object
 * @return the deserialized version of the TwilioSms Object
 * @throws Exception
 */
public static TwilioSms fromTwilioSmsDispatchable (
  TwilioSmsDispatchable twilioSmsDispatchable) throws Exception {
  
  return
    SerializationInl.<TwilioSms>deserializeObject(
      twilioSmsDispatchable.serialized_message);
}
 
开发者ID:vangav,项目名称:vos_backend,代码行数:17,代码来源:TwilioSms.java

示例13: fromTwilioMmsDispatchable

import com.vangav.backend.content.formatting.SerializationInl; //导入依赖的package包/类
/**
 * fromTwilioMmsDispatchable
 * usually used on the worker instance side where dispatch messages are
 *   received then gets executed
 * @param twilioMmsDispatchable is a JSON Object with a serialized
 *          version of a TwilioMms Object
 * @return the deserialized version of the TwilioMms Object
 * @throws Exception
 */
public static TwilioMms fromTwilioMmsDispatchable (
  TwilioMmsDispatchable twilioMmsDispatchable) throws Exception {
  
  return
    SerializationInl.<TwilioMms>deserializeObject(
      twilioMmsDispatchable.serialized_message);
}
 
开发者ID:vangav,项目名称:vos_backend,代码行数:17,代码来源:TwilioMms.java

示例14: fromAppleNotificationDispatchable

import com.vangav.backend.content.formatting.SerializationInl; //导入依赖的package包/类
/**
 * fromAppleNotificationDispatchable
 * usually used on the worker instance side where dispatch messages are
 *   received then gets executed
 * @param appleNotificationDispatchable is a JSON Object with a serialized
 *          version of an AppleNotification Object
 * @return the deserialized version of the AppleNotification Object
 * @throws Exception
 */
public static AppleNotification fromAppleNotificationDispatchable (
  AppleNotificationDispatchable
    appleNotificationDispatchable) throws Exception {
  
  return
    SerializationInl.<AppleNotification>deserializeObject(
      appleNotificationDispatchable.serialized_message);
}
 
开发者ID:vangav,项目名称:vos_backend,代码行数:18,代码来源:AppleNotification.java

示例15: fromAndroidNotificationDispatchable

import com.vangav.backend.content.formatting.SerializationInl; //导入依赖的package包/类
/**
 * fromAndroidNotificationDispatchable
 * usually used on the worker instance side where dispatch messages are
 *   received then gets executed
 * @param androidNotificationDispatchable us a JSON Object with a serialized
 *          version of an AndroidNotification Object
 * @return the deserialized version of the AndroidNotification Object
 * @throws Exception
 */
public static AndroidNotification fromAndroidNotificationDispatchable (
  AndroidNotificationDispatchable
    androidNotificationDispatchable) throws Exception {
  
  return SerializationInl.<AndroidNotification>deserializeObject(
    androidNotificationDispatchable.serialized_message);
}
 
开发者ID:vangav,项目名称:vos_backend,代码行数:17,代码来源:AndroidNotification.java


注:本文中的com.vangav.backend.content.formatting.SerializationInl类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。