本文整理汇总了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);
}
示例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);
}
示例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);
}
示例5: postConstruct
import com.hivemq.spi.callback.registry.CallbackRegistry; //导入方法依赖的package包/类
@PostConstruct
public void postConstruct() {
CallbackRegistry callbackRegistry = getCallbackRegistry();
callbackRegistry.addCallback(clientStatusService);
}
示例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);
}
示例7: postConstruct
import com.hivemq.spi.callback.registry.CallbackRegistry; //导入方法依赖的package包/类
@PostConstruct
public void postConstruct() {
CallbackRegistry callbackRegistry = getCallbackRegistry();
callbackRegistry.addCallback(authorizationCallback);
callbackRegistry.addCallback(clientConnectCallback);
}
示例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);
}