public class NoOpHeartbeatPublisher extends com.google.common.util.concurrent.AbstractIdleService implements HeartbeatPublisher
| Constructor and Description |
|---|
NoOpHeartbeatPublisher() |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<StreamWriterHeartbeat> |
sendHeartbeat(StreamWriterHeartbeat heartbeat)
Publish one heartbeat.
|
protected void |
shutDown() |
protected void |
startUp() |
addListener, executor, isRunning, start, startAndWait, state, stop, stopAndWait, toStringprotected void startUp()
throws Exception
startUp in class com.google.common.util.concurrent.AbstractIdleServiceExceptionprotected void shutDown()
throws Exception
shutDown in class com.google.common.util.concurrent.AbstractIdleServiceExceptionpublic com.google.common.util.concurrent.ListenableFuture<StreamWriterHeartbeat> sendHeartbeat(StreamWriterHeartbeat heartbeat)
HeartbeatPublishersendHeartbeat in interface HeartbeatPublisherheartbeat - heartbeat to publishListenableFuture describing the state of publishing. The Future.get() method
will return the published heartbeat.Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.