Java Code Examples for org.apache.commons.collections4.CollectionUtils#emptyCollection()

The following examples show how to use org.apache.commons.collections4.CollectionUtils#emptyCollection() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RocketMQProduceOffsetFetcher.java    From DDMQ with Apache License 2.0 5 votes vote down vote up
public Collection<BrokerData> getBrokers() {
    try {
        ClusterInfo clusterInfo = defaultMQAdminExt.examineBrokerClusterInfo();
        Map<String, BrokerData> brokerAddrTable = clusterInfo.getBrokerAddrTable();
        return brokerAddrTable.values();
    } catch (Exception e) {
        LOGGER.error("GetBrokers Exception", e);
    }
    return CollectionUtils.emptyCollection();
}
 
Example 2
Source File: RocketMQProduceOffsetFetcher.java    From DDMQ with Apache License 2.0 5 votes vote down vote up
public Collection<BrokerData> getBrokers() {
    try {
        ClusterInfo clusterInfo = defaultMQAdminExt.examineBrokerClusterInfo();
        Map<String, BrokerData> brokerAddrTable = clusterInfo.getBrokerAddrTable();
        return brokerAddrTable.values();
    } catch (Exception e) {
        LOGGER.error("GetBrokers Exception", e);
    }
    return CollectionUtils.emptyCollection();
}
 
Example 3
Source File: ComAdminDaoImpl.java    From openemm with GNU Affero General Public License v3.0 4 votes vote down vote up
protected Collection<String> getAdditionalExtendedColumns() {
	return CollectionUtils.emptyCollection();
}
 
Example 4
Source File: ComAdminDaoImpl.java    From openemm with GNU Affero General Public License v3.0 4 votes vote down vote up
protected Collection<Object> getAdditionalExtendedParams(final ComAdmin admin) {
	return CollectionUtils.emptyCollection();
}