本文整理了Java中org.tinygroup.event.Event.setMode()
方法的一些代码示例,展示了Event.setMode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Event.setMode()
方法的具体详情如下:
包路径:org.tinygroup.event.Event
类名称:Event
方法名:setMode
暂无
代码示例来源:origin: org.tinygroup/org.tinygroup.cepcorenettysc
private Event getAsynchronousResponseEvent(Event event) {
Event response = new Event();
response.setEventId(event.getEventId());
response.setMode(Event.EVENT_MODE_ASYNCHRONOUS);
response.setType(Event.EVENT_TYPE_RESPONSE);
return response;
}
代码示例来源:origin: org.tinygroup/org.tinygroup.servicewrapper
private Event getEvent(String serviceId, Context context) throws Exception {
Event event = new Event();
event.setEventId(UUID.randomUUID().toString());
ServiceRequest serviceRequest = new ServiceRequest();
serviceRequest.setContext(context);
serviceRequest.setServiceId(serviceId);
try {
String nodeName = InvokeNodeSetter.getNodeName();
int eventMode = EventModeSetter.getEventMode();
if (!StringUtil.isBlank(nodeName)) {
serviceRequest.setNodeName(nodeName);
}
event.setMode(eventMode);
} finally {
InvokeNodeSetter.removeNodeName();
EventModeSetter.removeEventMode();
}
event.setServiceRequest(serviceRequest);
return event;
}
内容来源于网络,如有侵权,请联系作者删除!