本文整理汇总了C++中QoSTransportSettings类的典型用法代码示例。如果您正苦于以下问题:C++ QoSTransportSettings类的具体用法?C++ QoSTransportSettings怎么用?C++ QoSTransportSettings使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了QoSTransportSettings类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
/*
* Class: com_madara_transport_QoSTransportSettings
* Method: jni_setTotalBandwidthLimit
* Signature: (JI)V
*/
void JNICALL
Java_com_madara_transport_QoSTransportSettings_jni_1setTotalBandwidthLimit
(JNIEnv * env, jobject obj, jlong cptr, jint limit)
{
QoSTransportSettings * settings = (QoSTransportSettings *)cptr;
if (settings)
{
settings->set_total_bandwidth_limit (limit);
}
}
示例2: JavaBufferFilter
/*
* Class: com_madara_transport_QoSTransportSettings
* Method: jni_addBufferFilterObj
* Signature: (JLcom/madara/filters/BufferFilter;)V
*/
void JNICALL
Java_com_madara_transport_QoSTransportSettings_jni_1addBufferFilterObj
(JNIEnv *, jobject, jlong cptr, jobject filter)
{
QoSTransportSettings * settings = (QoSTransportSettings *)cptr;
JavaBufferFilter * buffer_filter = new JavaBufferFilter (
*madara::logger::global_logger.get (), filter);
if (settings && buffer_filter)
{
settings->add_filter (buffer_filter);
}
}
示例3: result
/*
* Class: com_madara_transport_QoSTransportSettings
* Method: jni_getDeadline
* Signature: (J)I
*/
jint JNICALL
Java_com_madara_transport_QoSTransportSettings_jni_1getDeadline
(JNIEnv * env, jobject obj, jlong cptr)
{
jint result (0);
QoSTransportSettings * settings = (QoSTransportSettings *)cptr;
if (settings)
{
result = (jint) settings->get_deadline ();
}
return result;
}
示例4: madara_logger_ptr_log
/*
* Class: com_madara_transport_QoSTransportSettings
* Method: jni_clearBufferFilters
* Signature: (J)V
*/
void JNICALL
Java_com_madara_transport_QoSTransportSettings_jni_1clearBufferFilters
(JNIEnv *, jobject, jlong cptr)
{
QoSTransportSettings * settings = (QoSTransportSettings *)cptr;
madara_logger_ptr_log (
logger::global_logger.get (),
logger::LOG_MAJOR,
"JNI:QoSTransportSettings::clear_buffer_filters: "
"Clearing buffer filters\n");
if (settings)
{
settings->clear_buffer_filters ();
}
}
示例5: Java_com_madara_transport_QoSTransportSettings_jni_1setSendBandwidthLimit
/*
* Class: com_madara_transport_QoSTransportSettings
* Method: jni_setSendBandwidthLimit
* Signature: (JI)V
*/
void JNICALL
Java_com_madara_transport_QoSTransportSettings_jni_1setSendBandwidthLimit (
JNIEnv * env, jobject obj, jlong cptr, jint limit)
{
QoSTransportSettings * settings = (QoSTransportSettings *)cptr;
madara_logger_ptr_log (
logger::global_logger.get (),
logger::LOG_MAJOR,
"JNI:QoSTransportSettings::set_send_bandwidth: "
"Modifying send bandwidth limits\n");
if (settings)
{
settings->set_send_bandwidth_limit (limit);
}
}
示例6: Java_com_madara_transport_QoSTransportSettings_jni_1gettParticpantTtl
/*
* Class: com_madara_transport_QoSTransportSettings
* Method: jni_getParticpantTtl
* Signature: (J)I
*/
jint JNICALL
Java_com_madara_transport_QoSTransportSettings_jni_1gettParticpantTtl (JNIEnv * env, jobject obj, jlong cptr)
{
jint result (0);
QoSTransportSettings * settings = (QoSTransportSettings *)cptr;
madara_logger_ptr_log (
logger::global_logger.get (),
logger::LOG_MAJOR,
"JNI:QoSTransportSettings::get_participant_ttl: "
"Retrieving participant time-to-live in other's rebroadcasts\n");
if (settings)
{
result = (jint) settings->get_participant_ttl ();
}
return result;
}
示例7: Java_com_madara_transport_QoSTransportSettings_jni_1getSendBandwidthLimit
/*
* Class: com_madara_transport_QoSTransportSettings
* Method: jni_getSendBandwidthLimit
* Signature: (J)I
*/
jint JNICALL
Java_com_madara_transport_QoSTransportSettings_jni_1getSendBandwidthLimit (JNIEnv * env, jobject obj, jlong cptr)
{
jint result (0);
QoSTransportSettings * settings = (QoSTransportSettings *)cptr;
madara_logger_ptr_log (
logger::global_logger.get (),
logger::LOG_MAJOR,
"JNI:QoSTransportSettings::get_send_bandwidth: "
"Retrieving send bandwidth limits\n");
if (settings)
{
result = (jint) settings->get_send_bandwidth_limit ();
}
return result;
}