Codota Logo
RemoteChunkingWorkerBuilder
Code IndexAdd Codota to your IDE (free)

How to use
RemoteChunkingWorkerBuilder
in
org.springframework.batch.integration.chunk

Best Java code snippets using org.springframework.batch.integration.chunk.RemoteChunkingWorkerBuilder (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-batch

@Bean
public <I,O> RemoteChunkingWorkerBuilder<I, O> remoteChunkingWorkerBuilder() {
  return new RemoteChunkingWorkerBuilder<>();
}
origin: spring-projects/spring-batch

@Bean
public IntegrationFlow workerIntegrationFlow() {
  return this.remoteChunkingWorkerBuilder
      .itemProcessor(itemProcessor())
      .itemWriter(itemWriter())
      .inputChannel(requests())
      .outputChannel(replies())
      .build();
}
origin: spring-projects/spring-batch

@Test
public void testMandatoryOutputChannel() {
  // given
  RemoteChunkingWorkerBuilder<String, String> builder = new RemoteChunkingWorkerBuilder<String, String>()
      .itemWriter(items -> { })
      .inputChannel(new DirectChannel());
  this.expectedException.expect(IllegalArgumentException.class);
  this.expectedException.expectMessage("An OutputChannel must be provided");
  // when
  builder.build();
  // then
  // expected exception
}
origin: spring-projects/spring-batch

@Test
public void testMandatoryInputChannel() {
  // given
  RemoteChunkingWorkerBuilder<String, String> builder = new RemoteChunkingWorkerBuilder<String, String>()
      .itemWriter(items -> { });
  this.expectedException.expect(IllegalArgumentException.class);
  this.expectedException.expectMessage("An InputChannel must be provided");
  // when
  builder.build();
  // then
  // expected exception
}
origin: spring-projects/spring-batch

@Test
public void itemProcessorMustNotBeNull() {
  // given
  this.expectedException.expect(IllegalArgumentException.class);
  this.expectedException.expectMessage("itemProcessor must not be null");
  // when
  IntegrationFlow integrationFlow = new RemoteChunkingWorkerBuilder<String, String>()
      .itemProcessor(null)
      .build();
  // then
  // expected exception
}
origin: spring-projects/spring-batch

@Test
public void outputChannelMustNotBeNull() {
  // given
  this.expectedException.expect(IllegalArgumentException.class);
  this.expectedException.expectMessage("outputChannel must not be null");
  // when
  IntegrationFlow integrationFlow = new RemoteChunkingWorkerBuilder<String, String>()
      .outputChannel(null)
      .build();
  // then
  // expected exception
}
origin: spring-projects/spring-batch

@Test
public void inputChannelMustNotBeNull() {
  // given
  this.expectedException.expect(IllegalArgumentException.class);
  this.expectedException.expectMessage("inputChannel must not be null");
  // when
  IntegrationFlow integrationFlow = new RemoteChunkingWorkerBuilder<String, String>()
      .inputChannel(null)
      .build();
  // then
  // expected exception
}
origin: spring-projects/spring-batch

@Test
public void testMandatoryItemWriter() {
  // given
  RemoteChunkingWorkerBuilder<String, String> builder = new RemoteChunkingWorkerBuilder<>();
  this.expectedException.expect(IllegalArgumentException.class);
  this.expectedException.expectMessage("An ItemWriter must be provided");
  // when
  builder.build();
  // then
  // expected exception
}
origin: spring-projects/spring-batch

@Test
public void itemWriterMustNotBeNull() {
  // given
  this.expectedException.expect(IllegalArgumentException.class);
  this.expectedException.expectMessage("itemWriter must not be null");
  // when
  IntegrationFlow integrationFlow = new RemoteChunkingWorkerBuilder<String, String>()
      .itemWriter(null)
      .build();
  // then
  // expected exception
}
origin: spring-projects/spring-batch

@Test
public void testIntegrationFlowCreation() {
  // given
  DirectChannel inputChannel = new DirectChannel();
  DirectChannel outputChannel = new DirectChannel();
  RemoteChunkingWorkerBuilder<String, String> builder = new RemoteChunkingWorkerBuilder<String, String>()
      .itemProcessor(this.itemProcessor)
      .itemWriter(this.itemWriter)
      .inputChannel(inputChannel)
      .outputChannel(outputChannel);
  // when
  IntegrationFlow integrationFlow = builder.build();
  // then
  Assert.assertNotNull(integrationFlow);
}
org.springframework.batch.integration.chunkRemoteChunkingWorkerBuilder

Javadoc

Builder for a worker in a remote chunking setup. This builder:
  • creates a ChunkProcessorChunkHandler with the provided item processor and writer. If no item processor is provided, a PassThroughItemProcessor will be used
  • creates an IntegrationFlow with the ChunkProcessorChunkHandler as a service activator which listens to incoming requests on inputChannel and sends replies on outputChannel

Most used methods

  • <init>
  • build
    Create an IntegrationFlow with a ChunkProcessorChunkHandlerconfigured as a service activator listeni
  • inputChannel
    Set the input channel on which items sent by the master are received.
  • itemProcessor
    Set the ItemProcessor to use to process items sent by the master step.
  • itemWriter
    Set the ItemWriter to use to write items sent by the master step.
  • outputChannel
    Set the output channel on which replies will be sent to the master step.

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JFileChooser (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
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