public class CoordinatorBasedSegmentHandoffNotifier extends Object implements SegmentHandoffNotifier
| Constructor and Description |
|---|
CoordinatorBasedSegmentHandoffNotifier(String dataSource,
CoordinatorClient coordinatorClient,
CoordinatorBasedSegmentHandoffNotifierConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Perform any final processing and clean up after ourselves.
|
boolean |
registerSegmentHandoffCallback(SegmentDescriptor descriptor,
Executor exec,
Runnable handOffRunnable)
register a handOffCallback to be called when segment handoff is complete.
|
void |
start()
Perform any initial setup.
|
public CoordinatorBasedSegmentHandoffNotifier(String dataSource, CoordinatorClient coordinatorClient, CoordinatorBasedSegmentHandoffNotifierConfig config)
public boolean registerSegmentHandoffCallback(SegmentDescriptor descriptor, Executor exec, Runnable handOffRunnable)
SegmentHandoffNotifierregisterSegmentHandoffCallback in interface SegmentHandoffNotifierdescriptor - segment descriptor for the segment for which handoffCallback is requestedexec - executor used to call the runnablehandOffRunnable - runnable to be called when segment handoff is completepublic void start()
SegmentHandoffNotifier#stop().start in interface SegmentHandoffNotifierpublic void close()
SegmentHandoffNotifierclose in interface SegmentHandoffNotifierclose in interface Closeableclose in interface AutoCloseableCopyright © 2011–2017. All rights reserved.