public class ApplicationExitControllerImpl extends Object implements org.thales.punch.platform.api.IApplicationExitController, IRecordHandler<String,byte[]>
| Constructor and Description |
|---|
ApplicationExitControllerImpl(String entityUUID,
org.thales.punch.libraries.metrics.api.IMetricContext mc)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<org.thales.punch.platform.api.IApplication> |
getTerminatedApplications(List<org.thales.punch.platform.api.IApplication> list,
Duration timeout) |
void |
onReceive(IPartition partition,
org.apache.kafka.clients.consumer.ConsumerRecord<String,byte[]> record)
Be notified upon the arrival of a record.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonPartitionAssigned, onPartitionRevoked, onTickpublic ApplicationExitControllerImpl(String entityUUID, org.thales.punch.libraries.metrics.api.IMetricContext mc) throws org.thales.punch.exceptions.ConfigurationException
entityUUID - the unique id of your entity; only the application
belonging to that entity will be reported.mc - a metric contextorg.thales.punch.exceptions.ConfigurationExceptionpublic List<org.thales.punch.platform.api.IApplication> getTerminatedApplications(List<org.thales.punch.platform.api.IApplication> list, Duration timeout)
getTerminatedApplications in interface org.thales.punch.platform.api.IApplicationExitControllerpublic void onReceive(IPartition partition, org.apache.kafka.clients.consumer.ConsumerRecord<String,byte[]> record)
IRecordHandleronReceive in interface IRecordHandler<String,byte[]>partition - the receiving partition. Use it to acknowledge or fail your records in the way you need.record - the recordpublic void close()
close in interface AutoCloseableCopyright © 2014–2023. All rights reserved.