本文整理匯總了Java中org.apache.cassandra.utils.CoalescingStrategies.CoalescingStrategy類的典型用法代碼示例。如果您正苦於以下問題:Java CoalescingStrategy類的具體用法?Java CoalescingStrategy怎麽用?Java CoalescingStrategy使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
CoalescingStrategy類屬於org.apache.cassandra.utils.CoalescingStrategies包,在下文中一共展示了CoalescingStrategy類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: newCoalescingStrategy
import org.apache.cassandra.utils.CoalescingStrategies.CoalescingStrategy; //導入依賴的package包/類
private static CoalescingStrategy newCoalescingStrategy(String displayName)
{
return CoalescingStrategies.newCoalescingStrategy(DatabaseDescriptor.getOtcCoalescingStrategy(),
DatabaseDescriptor.getOtcCoalescingWindow(),
logger,
displayName);
}
示例2: newStrategy
import org.apache.cassandra.utils.CoalescingStrategies.CoalescingStrategy; //導入依賴的package包/類
CoalescingStrategy newStrategy(String name, int window)
{
return CoalescingStrategies.newCoalescingStrategy(name, window, parker, logger, "Stupendopotamus");
}