当前位置: 首页>>代码示例>>Java>>正文


Java CallbackRegistry.addCallback方法代码示例

本文整理汇总了Java中com.hivemq.spi.callback.registry.CallbackRegistry.addCallback方法的典型用法代码示例。如果您正苦于以下问题:Java CallbackRegistry.addCallback方法的具体用法?Java CallbackRegistry.addCallback怎么用?Java CallbackRegistry.addCallback使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.hivemq.spi.callback.registry.CallbackRegistry的用法示例。


在下文中一共展示了CallbackRegistry.addCallback方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: postConstruct

import com.hivemq.spi.callback.registry.CallbackRegistry; //导入方法依赖的package包/类
/**
 * This method is executed after the instanciation of the whole class. It is used to initialize
 * the implemented callbacks and make them known to the HiveMQ core.
 */
@PostConstruct
public void postConstruct() {

    CallbackRegistry callbackRegistry = getCallbackRegistry();
    callbackRegistry.addCallback(discoveryCallback);

}
 
开发者ID:hivemq,项目名称:s3-cluster-discovery-plugin,代码行数:12,代码来源:S3DiscoveryPluginEntryPoint.java

示例2: postConstruct

import com.hivemq.spi.callback.registry.CallbackRegistry; //导入方法依赖的package包/类
/**
 * This method is executed after the instanciation of the whole class. It is used to initialize
 * the implemented callbacks and make them known to the HiveMQ core.
 */
@PostConstruct
public void postConstruct() {
    CallbackRegistry callbackRegistry = getCallbackRegistry();
    KafkaPush push = new KafkaPush();
    callbackRegistry.addCallback(push);
}
 
开发者ID:sabarishs,项目名称:hivemq-kafka-plugin,代码行数:11,代码来源:KafkaPluginMain.java

示例3: postConstruct

import com.hivemq.spi.callback.registry.CallbackRegistry; //导入方法依赖的package包/类
@PostConstruct
public void postConstruct() {

    CallbackRegistry callbackRegistry = getCallbackRegistry();
    callbackRegistry.addCallback(nextAuthorisation);
    callbackRegistry.addCallback(blacklistAuthorisation); //Register blacklist or whitelist authorisation here
}
 
开发者ID:hivemq,项目名称:hivemq-authorization-blacklist-whitelist-example,代码行数:8,代码来源:BlackAndWhitelistExampleMainClass.java

示例4: postConstruct

import com.hivemq.spi.callback.registry.CallbackRegistry; //导入方法依赖的package包/类
/**
 * This method is executed after the instanciation of the whole class. It is used to initialize
 * the implemented callbacks and make them known to the HiveMQ core.
 */
@PostConstruct
public void postConstruct() {

    CallbackRegistry callbackRegistry = getCallbackRegistry();
    callbackRegistry.addCallback(hiveMQStart);
    callbackRegistry.addCallback(clientConnect);
    callbackRegistry.addCallback(clientDisconnect);
    callbackRegistry.addCallback(publishReceived);
    callbackRegistry.addCallback(simpleScheduledCallback);
    callbackRegistry.addCallback(scheduledClearRetainedCallback);
    callbackRegistry.addCallback(addSubscriptionOnClientConnect);
    callbackRegistry.addCallback(sendListOfAllClientsOnPublish);

}
 
开发者ID:hivemq,项目名称:hivemq-hello-world-plugin,代码行数:19,代码来源:HelloWorldMainClass.java

示例5: postConstruct

import com.hivemq.spi.callback.registry.CallbackRegistry; //导入方法依赖的package包/类
@PostConstruct
public void postConstruct() {
    CallbackRegistry callbackRegistry = getCallbackRegistry();
    callbackRegistry.addCallback(clientStatusService);
}
 
开发者ID:artcom,项目名称:hivemq-client-status-plugin,代码行数:6,代码来源:ClientStatusMainClass.java

示例6: postConstruct

import com.hivemq.spi.callback.registry.CallbackRegistry; //导入方法依赖的package包/类
/**
 * This method is executed after the instanciation of the whole class. It is used to initialize
 * the implemented callbacks and make them known to the HiveMQ core.
 */
@PostConstruct
public void postConstruct() {
    CallbackRegistry callbackRegistry = getCallbackRegistry();
    callbackRegistry.addCallback(authorizationCallback);
}
 
开发者ID:hivemq,项目名称:hivemq-authorization-example,代码行数:10,代码来源:AuthorizationExampleMainClass.java

示例7: postConstruct

import com.hivemq.spi.callback.registry.CallbackRegistry; //导入方法依赖的package包/类
@PostConstruct
public void postConstruct() {

    CallbackRegistry callbackRegistry = getCallbackRegistry();

    callbackRegistry.addCallback(authorizationCallback);
    callbackRegistry.addCallback(clientConnectCallback);

}
 
开发者ID:hivemq,项目名称:x509-client-cert-hivemq-example-plugin,代码行数:10,代码来源:X509ClientCertEntryPoint.java

示例8: postConstruct

import com.hivemq.spi.callback.registry.CallbackRegistry; //导入方法依赖的package包/类
@PostConstruct
public void postConstruct() {

    final CallbackRegistry callbackRegistry = getCallbackRegistry();

    callbackRegistry.addCallback(persistMessagesCallback);
    callbackRegistry.addCallback(shutdownCallback);
    callbackRegistry.addCallback(dbAuthenticationCallback);

}
 
开发者ID:hivemq,项目名称:hivemq-database-example-plugin,代码行数:11,代码来源:DatabaseExamplePlugin.java


注:本文中的com.hivemq.spi.callback.registry.CallbackRegistry.addCallback方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。