本文整理了Java中net.engio.mbassy.listener.Handler.<init>()
方法的一些代码示例,展示了Handler.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Handler.<init>()
方法的具体详情如下:
包路径:net.engio.mbassy.listener.Handler
类名称:Handler
方法名:<init>
暂无
代码示例来源:origin: bennidi/mbassador
@Override
@Handler
public void onMessage(Object msg) {
// nop
}
};
代码示例来源:origin: bennidi/mbassador
@Handler
public void handleDead(DeadMessage dead){
DeadEventCounter.incrementAndGet();
}
}
代码示例来源:origin: bennidi/mbassador
@Handler
public void handleSync(Integer message){
receivedSync.add(message);
}
代码示例来源:origin: bennidi/mbassador
@Handler
public void handleAndThrowException(String s) throws Exception {
msgHandlerCounter.incrementAndGet();
throw new Exception("error in msg handler on call no. " + msgHandlerCounter.get());
}
});
代码示例来源:origin: bennidi/mbassador
@Handler(rejectSubtypes = true)
public void handle(MultipartMessage message){
super.handle(message);
}
}
代码示例来源:origin: bennidi/mbassador
@Handler
@RejectFiltered
public void handleFilteredEvent(FilteredMessage filtered){
FilteredEventCounter.incrementAndGet();
}
代码示例来源:origin: bennidi/mbassador
@Handler
@RejectAll
public void handleNone(Object any){
FilteredEventCounter.incrementAndGet();
}
代码示例来源:origin: bennidi/mbassador
@net.engio.mbassy.listener.Handler(priority = 4)
public void handlePrio4(IMessage message) {
message.handled(this.getClass());
}
}
代码示例来源:origin: bennidi/mbassador
/**
* (!) If this method is removed, NO event handler will be called.
*/
@Handler
public void handleEventWithNonOverloadedMethodName(TestMessageA event) {
event.handled(this.getClass());
}
代码示例来源:origin: bennidi/mbassador
@Handler(rejectSubtypes = true)
public void handle(ICountable message){
super.handle(message);
}
}
代码示例来源:origin: bennidi/mbassador
@Handler(rejectSubtypes = true, priority = 4)
public void handle(AbstractMessage message){
super.handle(message);
}
}
代码示例来源:origin: bennidi/mbassador
@Handler(rejectSubtypes = true, priority = 4)
public void handle(StandardMessage message){
super.handle(message);
}
}
代码示例来源:origin: bennidi/mbassador
@Handler(delivery = Invoke.Asynchronously)
@Synchronized
public void handleMessage(Object o){
for(int i = 0; i < incrementsPerMessage; i++){
counter++;
}
}
代码示例来源:origin: bennidi/mbassador
@Handler(rejectSubtypes = true, priority = Integer.MIN_VALUE)
public void handle(IMultipartMessage message){
super.handle(message);
}
}
代码示例来源:origin: bennidi/mbassador
@Handler
@Synchronized
public void handleMessage(Object o){
for(int i = 0; i < incrementsPerMessage; i++){
counter++;
}
}
代码示例来源:origin: bennidi/mbassador
@Handler(rejectSubtypes = true)
public void handle(IMessage message){
super.handle(message);
}
}
代码示例来源:origin: bennidi/mbassador
@Handler(rejectSubtypes = true)
public void handle(MessageTypes message){
super.handle(message);
}
}
代码示例来源:origin: bennidi/mbassador
@Handler(condition = "msg.type == 'TEST'")
public void handleTypeMessage(TestEvent message) {
message.handledBy("handleTypeMessage");
}
代码示例来源:origin: bennidi/mbassador
@Handler(invocation = HandleSubTestEventInvocation.class)
public void handle(StandardMessage message) {
message.handled(this.getClass());
message.handled(this.getClass());
}
代码示例来源:origin: bennidi/mbassador
@Handler(condition = "msg.type == 'TEST'")
@Enveloped(messages = {TestEvent.class, Object.class})
public void handleEnvelopedMessage(MessageEnvelope envelope) {
envelope.<TestEvent>getMessage().handledBy("handleEnvelopedMessage");
}
内容来源于网络,如有侵权,请联系作者删除!