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 ( ) ; } }
not part of the Verb enum so we can change timeouts easily via JMX