Package cz.o2.proxima.direct.core.batch
Class TerminationContext
- java.lang.Object
-
- cz.o2.proxima.direct.core.batch.TerminationContext
-
- All Implemented Interfaces:
ObserveHandle,java.lang.AutoCloseable
@Internal public class TerminationContext extends java.lang.Object implements ObserveHandle
A context that guards correct termination of batch observation process.
-
-
Constructor Summary
Constructors Constructor Description TerminationContext(BatchLogObserver observer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()voidclose()Stop the consumption.voidfinished()voidhandleErrorCaught(java.lang.Throwable err, java.lang.Runnable retry)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cz.o2.proxima.direct.core.batch.ObserveHandle
disableRateLimiting, isReadyForProcessing
-
-
-
-
Constructor Detail
-
TerminationContext
public TerminationContext(BatchLogObserver observer)
-
-
Method Detail
-
cancel
public void cancel()
-
finished
public void finished()
-
handleErrorCaught
public void handleErrorCaught(java.lang.Throwable err, java.lang.Runnable retry)
-
close
public void close()
Description copied from interface:ObserveHandleStop the consumption.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceObserveHandle
-
-