本文整理汇总了Java中org.apache.cassandra.net.MessagingService.Verb方法的典型用法代码示例。如果您正苦于以下问题:Java MessagingService.Verb方法的具体用法?Java MessagingService.Verb怎么用?Java MessagingService.Verb使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.cassandra.net.MessagingService
的用法示例。
在下文中一共展示了MessagingService.Verb方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getTimeout
import org.apache.cassandra.net.MessagingService; //导入方法依赖的package包/类
public static long getTimeout(MessagingService.Verb verb)
{
switch (verb)
{
case READ:
return getReadRpcTimeout();
case RANGE_SLICE:
return getRangeRpcTimeout();
case TRUNCATE:
return getTruncateRpcTimeout();
case READ_REPAIR:
case MUTATION:
case PAXOS_COMMIT:
case PAXOS_PREPARE:
case PAXOS_PROPOSE:
return getWriteRpcTimeout();
case COUNTER_MUTATION:
return getCounterWriteRpcTimeout();
default:
return getRpcTimeout();
}
}
示例2: getTimeout
import org.apache.cassandra.net.MessagingService; //导入方法依赖的package包/类
public static long getTimeout(MessagingService.Verb verb)
{
switch (verb)
{
case READ:
return getReadRpcTimeout();
case RANGE_SLICE:
return getRangeRpcTimeout();
case TRUNCATE:
return getTruncateRpcTimeout();
case READ_REPAIR:
case MUTATION:
return getWriteRpcTimeout();
default:
return getRpcTimeout();
}
}
示例3: getTimeout
import org.apache.cassandra.net.MessagingService; //导入方法依赖的package包/类
public static long getTimeout(MessagingService.Verb verb)
{
switch (verb)
{
case READ:
return getReadRpcTimeout();
case RANGE_SLICE:
case PAGED_RANGE:
return getRangeRpcTimeout();
case TRUNCATE:
return getTruncateRpcTimeout();
case READ_REPAIR:
case MUTATION:
case PAXOS_COMMIT:
case PAXOS_PREPARE:
case PAXOS_PROPOSE:
case HINT:
case BATCH_STORE:
case BATCH_REMOVE:
return getWriteRpcTimeout();
case COUNTER_MUTATION:
return getCounterWriteRpcTimeout();
default:
return getRpcTimeout();
}
}
示例4: DroppedMessageMetrics
import org.apache.cassandra.net.MessagingService; //导入方法依赖的package包/类
public DroppedMessageMetrics(MessagingService.Verb verb) {
this.verb = verb;
}
示例5: DroppedMessageMetrics
import org.apache.cassandra.net.MessagingService; //导入方法依赖的package包/类
public DroppedMessageMetrics(MessagingService.Verb verb)
{
MetricNameFactory factory = new DefaultNameFactory("DroppedMessage", verb.toString());
dropped = Metrics.newMeter(factory.createMetricName("Dropped"), "dropped", TimeUnit.SECONDS);
}
示例6: createMessage
import org.apache.cassandra.net.MessagingService; //导入方法依赖的package包/类
public MessageOut<Mutation> createMessage(MessagingService.Verb verb)
{
return new MessageOut<>(verb, this, serializer);
}
示例7: createMessage
import org.apache.cassandra.net.MessagingService; //导入方法依赖的package包/类
public MessageOut<RowMutation> createMessage(MessagingService.Verb verb)
{
return new MessageOut<RowMutation>(verb, this, serializer);
}
示例8: DroppedMessageMetrics
import org.apache.cassandra.net.MessagingService; //导入方法依赖的package包/类
public DroppedMessageMetrics(MessagingService.Verb verb)
{
MetricNameFactory factory = new DefaultNameFactory("DroppedMessage", verb.toString());
dropped = Metrics.meter(factory.createMetricName("Dropped"));
}