@Service @ConditionalOnBean(value=BooksConfiguration.class) public class BookService extends Object implements org.thales.punch.kafka.api.IRecordHandler<String,byte[]>
Constructor and Description |
---|
BookService(EnvironmentConfiguration environmentConfiguration,
PunchplatformConfiguration configuration,
SubprocessService subprocessService,
BooksConfiguration booksConfiguration,
ResourcesManagerService resourcesManagerService) |
Modifier and Type | Method and Description |
---|---|
Book |
getOne(String bookId) |
String |
listAll() |
void |
onReceive(org.thales.punch.kafka.api.IPartition partition,
org.apache.kafka.clients.consumer.ConsumerRecord<String,byte[]> record) |
org.thales.punch.settings.api.ISettingsMap |
start(org.thales.punch.settings.api.SettingsMapBuilder bodyBuilder)
Start a new book
|
public BookService(EnvironmentConfiguration environmentConfiguration, PunchplatformConfiguration configuration, SubprocessService subprocessService, BooksConfiguration booksConfiguration, ResourcesManagerService resourcesManagerService)
public void onReceive(org.thales.punch.kafka.api.IPartition partition, org.apache.kafka.clients.consumer.ConsumerRecord<String,byte[]> record)
onReceive
in interface org.thales.punch.kafka.api.IRecordHandler<String,byte[]>
public org.thales.punch.settings.api.ISettingsMap start(org.thales.punch.settings.api.SettingsMapBuilder bodyBuilder) throws IOException
bodyBuilder
- body paramsIOException
public String listAll()
Copyright © 2023. All rights reserved.