Codota Logo
ChunkMessageChannelItemWriter.setMessagingOperations
Code IndexAdd Codota to your IDE (free)

How to use
setMessagingOperations
method
in
org.springframework.batch.integration.chunk.ChunkMessageChannelItemWriter

Best Java code snippets using org.springframework.batch.integration.chunk.ChunkMessageChannelItemWriter.setMessagingOperations (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-batch

/**
 * Build a master {@link TaskletStep}.
 *
 * @return the configured master step
 * @see RemoteChunkHandlerFactoryBean
 */
public TaskletStep build() {
  Assert.notNull(this.inputChannel, "An InputChannel must be provided");
  Assert.state(this.outputChannel == null || this.messagingTemplate == null,
      "You must specify either an outputChannel or a messagingTemplate but not both.");
  // configure messaging template
  if (this.messagingTemplate == null) {
    this.messagingTemplate = new MessagingTemplate();
    this.messagingTemplate.setDefaultChannel(this.outputChannel);
    if (this.logger.isDebugEnabled()) {
      this.logger.debug("No messagingTemplate was provided, using a default one");
    }
  }
  // configure item writer
  ChunkMessageChannelItemWriter<O> chunkMessageChannelItemWriter = new ChunkMessageChannelItemWriter<>();
  chunkMessageChannelItemWriter.setMessagingOperations(this.messagingTemplate);
  chunkMessageChannelItemWriter.setMaxWaitTimeouts(this.maxWaitTimeouts);
  chunkMessageChannelItemWriter.setThrottleLimit(this.throttleLimit);
  chunkMessageChannelItemWriter.setReplyChannel(this.inputChannel);
  super.writer(chunkMessageChannelItemWriter);
  return super.build();
}
origin: spring-projects/spring-batch

@Before
public void setUp() {
  jobRepository = new SimpleJobRepository(new MapJobInstanceDao(), new MapJobExecutionDao(),
      new MapStepExecutionDao(), new MapExecutionContextDao());
  factory.setJobRepository(jobRepository);
  factory.setTransactionManager(new ResourcelessTransactionManager());
  factory.setBeanName("step");
  factory.setItemWriter(writer);
  factory.setCommitInterval(4);
  MessagingTemplate gateway = new MessagingTemplate();
  writer.setMessagingOperations(gateway);
  gateway.setDefaultChannel(requests);
  writer.setReplyChannel(replies);
  gateway.setReceiveTimeout(100);
  TestItemWriter.count = 0;
  // Drain queues
  Message<?> message = replies.receive(10);
  while (message != null) {
    System.err.println(message);
    message = replies.receive(10);
  }
}
origin: mminella/LearningSpringBatch

@Bean
public ChunkMessageChannelItemWriter chunkWriter() {
  ChunkMessageChannelItemWriter chunkWriter = new ChunkMessageChannelItemWriter();
  chunkWriter.setMessagingOperations(messageTemplate());
  chunkWriter.setReplyChannel(inboundReplies());
  chunkWriter.setMaxWaitTimeouts(10);
  return chunkWriter;
}
org.springframework.batch.integration.chunkChunkMessageChannelItemWritersetMessagingOperations

Popular methods of ChunkMessageChannelItemWriter

  • setMaxWaitTimeouts
    The maximum number of times to wait at the end of a step for a non-null result from the remote worke
  • setReplyChannel
  • <init>
  • getNextResult
    Get the next result if it is available (within the timeout specified in the gateway), otherwise do n
  • getStepContributions
  • open
  • setThrottleLimit
    Public setter for the throttle limit. This limits the number of pending requests for chunk processin
  • update
  • waitForResults
    Wait until all the results that are in the pipeline come back to the reply channel.
  • wrapIfNecessary
    Re-throws the original throwable if it is unchecked, wraps checked exceptions into AsynchronousFailu

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JLabel (javax.swing)
  • JPanel (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
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