Skip to content

Commit

Permalink
fix spelling (#5804)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimmking committed May 26, 2020
1 parent 39b5412 commit cdb2f2a
Showing 1 changed file with 8 additions and 8 deletions.
Expand Up @@ -39,34 +39,34 @@
import java.util.stream.Collectors;

/**
* Heart beat handler.
* Heartbeat handler.
*/
@Slf4j
public final class HeartbeatHandler {

private HeartbeatConfiguration configuration;

/**
* Init heart beat handler.
* Init heartbeat handler.
*
* @param configuration heart beat configuration
* @param configuration heartbeat configuration
*/
public void init(final HeartbeatConfiguration configuration) {
Preconditions.checkNotNull(configuration, "heart beat configuration can not be null.");
Preconditions.checkNotNull(configuration, "heartbeat configuration can not be null.");
this.configuration = configuration;
}

/**
* Get heart beat handler instance.
* Get heartbeat handler instance.
*
* @return heart beat handler instance
* @return heartbeat handler instance
*/
public static HeartbeatHandler getInstance() {
return HeartbeatHandlerHolder.INSTANCE;
}

/**
* Handle heart beat detect event.
* Handle heartbeat detect event.
*
* @param schemas ShardingSphere schemas
*/
Expand Down Expand Up @@ -99,7 +99,7 @@ private void reportHeartbeat(final List<FutureTask<Map<String, HeartbeatResult>>
}
});
} catch (InterruptedException | ExecutionException ex) {
log.error("Heart beat report error", ex);
log.error("Heartbeat report error", ex);
}
});
ClusterFacade.getInstance().reportHeartbeat(new HeartbeatResponse(heartbeatResultMap));
Expand Down

0 comments on commit cdb2f2a

Please sign in to comment.