本文整理汇总了Java中com.vangav.backend.content.formatting.SerializationInl.deserializeObject方法的典型用法代码示例。如果您正苦于以下问题:Java SerializationInl.deserializeObject方法的具体用法?Java SerializationInl.deserializeObject怎么用?Java SerializationInl.deserializeObject使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.vangav.backend.content.formatting.SerializationInl
的用法示例。
在下文中一共展示了SerializationInl.deserializeObject方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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);
}
示例2: 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);
}
}
示例3: 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);
}
示例4: 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);
}
示例5: 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);
}
示例6: 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);
}
示例7: 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);
}
示例8: 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);
}