Codota Logo
DeadlineMessage.getPayloadType
Code IndexAdd Codota to your IDE (free)

How to use
getPayloadType
method
in
org.axonframework.deadline.DeadlineMessage

Best Java code snippets using org.axonframework.deadline.DeadlineMessage.getPayloadType (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: AxonFramework/AxonFramework

private JobDetail buildJobDetail(DeadlineMessage deadlineMessage, ScopeDescriptor deadlineScope, JobKey jobKey) {
  JobDataMap jobData = DeadlineJob.DeadlineJobDataBinder.toJobData(serializer, deadlineMessage, deadlineScope);
  return JobBuilder.newJob(DeadlineJob.class)
           .withDescription(deadlineMessage.getPayloadType().getName())
           .withIdentity(jobKey)
           .usingJobData(jobData)
           .build();
}
origin: AxonFramework/AxonFramework

} else if (logger.isInfoEnabled()) {
  logger.info("Job successfully executed. Deadline message [{}] processed.",
        deadlineMessage.getPayloadType().getSimpleName());
origin: org.axonframework/axon-messaging

private JobDetail buildJobDetail(DeadlineMessage deadlineMessage, ScopeDescriptor deadlineScope, JobKey jobKey) {
  JobDataMap jobData = DeadlineJob.DeadlineJobDataBinder.toJobData(serializer, deadlineMessage, deadlineScope);
  return JobBuilder.newJob(DeadlineJob.class)
           .withDescription(deadlineMessage.getPayloadType().getName())
           .withIdentity(jobKey)
           .usingJobData(jobData)
           .build();
}
origin: org.axonframework/axon-core

private JobDetail buildJobDetail(DeadlineMessage deadlineMessage, ScopeDescriptor deadlineScope, JobKey jobKey) {
  JobDataMap jobData = DeadlineJob.DeadlineJobDataBinder.toJobData(serializer, deadlineMessage, deadlineScope);
  return JobBuilder.newJob(DeadlineJob.class)
           .withDescription(deadlineMessage.getPayloadType().getName())
           .withIdentity(jobKey)
           .usingJobData(jobData)
           .build();
}
origin: org.axonframework/axon-core

@Override
public void execute(JobExecutionContext context) throws JobExecutionException {
  if (LOGGER.isDebugEnabled()) {
    LOGGER.debug("Starting a deadline job");
  }
  JobDetail jobDetail = context.getJobDetail();
  JobDataMap jobData = jobDetail.getJobDataMap();
  try {
    SchedulerContext schedulerContext = context.getScheduler().getContext();
    Serializer serializer = (Serializer) schedulerContext.get(JOB_DATA_SERIALIZER);
    TransactionManager transactionManager = (TransactionManager) schedulerContext.get(TRANSACTION_MANAGER_KEY);
    ScopeAwareProvider scopeAwareComponents = (ScopeAwareProvider) schedulerContext.get(SCOPE_AWARE_RESOLVER);
    DeadlineMessage<?> deadlineMessage = deadlineMessage(serializer, jobData);
    ScopeDescriptor deadlineScope = deadlineScope(serializer, jobData);
    DefaultUnitOfWork<DeadlineMessage<?>> unitOfWork = DefaultUnitOfWork.startAndGet(deadlineMessage);
    unitOfWork.attachTransaction(transactionManager);
    unitOfWork.execute(() -> executeScheduledDeadline(scopeAwareComponents, deadlineMessage, deadlineScope));
    if (LOGGER.isInfoEnabled()) {
      LOGGER.info("Job successfully executed. Deadline message [{}] processed.",
            deadlineMessage.getPayloadType().getSimpleName());
    }
  } catch (Exception e) {
    LOGGER.error("Exception occurred during processing a deadline job [{}]", jobDetail.getDescription(), e);
    throw new JobExecutionException(e);
  }
}
origin: org.axonframework/axon-messaging

} else if (logger.isInfoEnabled()) {
  logger.info("Job successfully executed. Deadline message [{}] processed.",
        deadlineMessage.getPayloadType().getSimpleName());
org.axonframework.deadlineDeadlineMessagegetPayloadType

Popular methods of DeadlineMessage

  • getDeadlineName
    Retrieve a String representing the name of this DeadlineMessage.
  • getIdentifier
  • getMetaData
  • getPayload
  • getTimestamp

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • getSharedPreferences (Context)
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now