Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
import java.util.Map;

public interface BrokerHeartbeatManager {
public static final long DEFAULT_BROKER_CHANNEL_EXPIRED_TIME = 1000 * 10;
long DEFAULT_BROKER_CHANNEL_EXPIRED_TIME = 1000 * 10;

public static BrokerHeartbeatManager newBrokerHeartbeatManager(ControllerConfig controllerConfig) {
static BrokerHeartbeatManager newBrokerHeartbeatManager(ControllerConfig controllerConfig) {
if (controllerConfig.getControllerType().equals(ControllerConfig.JRAFT_CONTROLLER)) {
return new RaftBrokerHeartBeatManager(controllerConfig);
} else {
Expand All @@ -37,9 +37,7 @@ public static BrokerHeartbeatManager newBrokerHeartbeatManager(ControllerConfig
}

/**
* initialize the resources
*
* @return
* Initialize the resources
*/
void initialize();

Expand Down Expand Up @@ -72,6 +70,8 @@ void onBrokerHeartbeat(final String clusterName, final String brokerName, final

/**
* Get broker live information by clusterName and brokerAddr
*
* @return broker live information or null if not found
*/
BrokerLiveInfo getBrokerLiveInfo(String clusterName, String brokerName, Long brokerId);

Expand Down
Loading