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)
SegmentHandoffNotifier
registerSegmentHandoffCallback
in interface SegmentHandoffNotifier
descriptor
- 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 SegmentHandoffNotifier
public void close()
SegmentHandoffNotifier
close
in interface SegmentHandoffNotifier
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2011–2017. All rights reserved.