Package com.redis.riot
Class SynchronizedPollableItemReader<T>
- java.lang.Object
-
- com.redis.riot.SynchronizedPollableItemReader<T>
-
- All Implemented Interfaces:
com.redis.spring.batch.reader.PollableItemReader<T>
,org.springframework.batch.item.ItemReader<T>
,org.springframework.batch.item.ItemStream
,org.springframework.batch.item.ItemStreamReader<T>
,org.springframework.beans.factory.InitializingBean
public class SynchronizedPollableItemReader<T> extends java.lang.Object implements com.redis.spring.batch.reader.PollableItemReader<T>, org.springframework.beans.factory.InitializingBean
-
-
Constructor Summary
Constructors Constructor Description SynchronizedPollableItemReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
void
close()
void
open(org.springframework.batch.item.ExecutionContext executionContext)
T
poll(long timeout, java.util.concurrent.TimeUnit unit)
T
read()
This delegates to the read method of thedelegate
void
setDelegate(com.redis.spring.batch.reader.PollableItemReader<T> delegate)
void
update(org.springframework.batch.item.ExecutionContext executionContext)
-
-
-
Method Detail
-
read
@Nullable public T read() throws java.lang.Exception, org.springframework.batch.item.UnexpectedInputException, org.springframework.batch.item.ParseException, org.springframework.batch.item.NonTransientResourceException
This delegates to the read method of thedelegate
- Specified by:
read
in interfaceorg.springframework.batch.item.ItemReader<T>
- Throws:
java.lang.Exception
org.springframework.batch.item.UnexpectedInputException
org.springframework.batch.item.ParseException
org.springframework.batch.item.NonTransientResourceException
-
close
public void close()
- Specified by:
close
in interfaceorg.springframework.batch.item.ItemStream
-
open
public void open(org.springframework.batch.item.ExecutionContext executionContext)
- Specified by:
open
in interfaceorg.springframework.batch.item.ItemStream
-
update
public void update(org.springframework.batch.item.ExecutionContext executionContext)
- Specified by:
update
in interfaceorg.springframework.batch.item.ItemStream
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
-
setDelegate
public void setDelegate(com.redis.spring.batch.reader.PollableItemReader<T> delegate)
-
-