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

How to use
RiderFailurePublisher
in
camelinaction

Best Java code snippets using camelinaction.RiderFailurePublisher (Showing top 2 results out of 315)

origin: camelinaction/camelinaction2

public void notify(EventObject eventObject) throws Exception {
  if (eventObject instanceof ExchangeFailedEvent) {
    ExchangeFailedEvent event = (ExchangeFailedEvent) eventObject;
    String id = event.getExchange().getExchangeId();
    Exception cause = event.getExchange().getException();
    Date now = new Date();
    publisher.publish(appId, id, now, cause.getMessage());
  }
}
origin: camelinaction/camelinaction

protected void notifyFailure(ExchangeFailedEvent event) {
  String id = event.getExchange().getExchangeId();
  Exception cause = event.getExchange().getException();
  Date now = new Date();
  publisher.publish(appId, id, now, cause.getMessage());
}
camelinactionRiderFailurePublisher

Javadoc

To publish failures

Most used methods

  • publish

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • String (java.lang)
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • JCheckBox (javax.swing)
  • 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