本文整理汇总了Java中org.apache.cassandra.service.StorageProxy.shouldHint方法的典型用法代码示例。如果您正苦于以下问题:Java StorageProxy.shouldHint方法的具体用法?Java StorageProxy.shouldHint怎么用?Java StorageProxy.shouldHint使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.cassandra.service.StorageProxy
的用法示例。
在下文中一共展示了StorageProxy.shouldHint方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: shouldHint
import org.apache.cassandra.service.StorageProxy; //导入方法依赖的package包/类
public boolean shouldHint()
{
return allowHints
&& sentMessage.verb != MessagingService.Verb.COUNTER_MUTATION
&& consistencyLevel != ConsistencyLevel.ANY
&& StorageProxy.shouldHint(target);
}
示例2: shouldHint
import org.apache.cassandra.service.StorageProxy; //导入方法依赖的package包/类
public boolean shouldHint()
{
return mutation != null && StorageProxy.shouldHint(target);
}
示例3: shouldHint
import org.apache.cassandra.service.StorageProxy; //导入方法依赖的package包/类
public boolean shouldHint()
{
return sentMessage.verb != MessagingService.Verb.COUNTER_MUTATION
&& consistencyLevel != ConsistencyLevel.ANY
&& StorageProxy.shouldHint(target);
}
示例4: shouldHint
import org.apache.cassandra.service.StorageProxy; //导入方法依赖的package包/类
/**
* @return TRUE iff a hint should be written for this target.
*
* NOTE:
* Assumes it is only called after the write of "sentMessage" to "target" has timed out.
*/
public boolean shouldHint()
{
return sentMessage != null && StorageProxy.shouldHint(target);
}