public void callback(Message c) { MessageBuilder.createConversation(c) .subjectProvided().noErrorHandling() .sendNowWith(bus); } });
@Override public void setValue(final T responseValue) { createConversation(incomingMessage) .subjectProvided() .with("MethodReply", responseValue) .noErrorHandling().reply(); } }
@Override public void callback(final Message message) { invokeMethodFromMessage(message); createConversation(message) .subjectProvided() .noErrorHandling().sendNowWith(bus); } }
/** * Sends a disconnect command message to the client bus * * @param bus * - the bus responsible for sending messages for the server * @param message * - the message that has encountered the error */ public static void disconnectRemoteBus(MessageBus bus, Message message) { MessageBuilder.createConversation(message) .toSubject("ClientBus") .command(BusCommand.Disconnect) .noErrorHandling().sendNowWith(bus); }
@Override public void setValue(final T responseValue) { createConversation(incomingMessage) .subjectProvided() .with("MethodReply", responseValue) .noErrorHandling().reply(); } }
@Override public void callback(final Message message) { createConversation(message) .subjectProvided() .with("MethodReply", invokeMethodFromMessage(message)) .noErrorHandling().sendNowWith(bus); } }
.with(MessageParts.ErrorTo, message.get(String.class, MessageParts.ErrorTo)) .with(MessageParts.Throwable, message.getResource(Object.class, "Exception")) .noErrorHandling().sendNowWith(bus);
if (observedEvents.size() > 0) { MessageBuilder.createConversation(message).toSubject(CDI.CLIENT_DISPATCHER_SUBJECT) .command(CDICommands.AttachRemote).with(MessageParts.RemoteServices, getEventTypes()).done().reply(); .command(CDICommands.AttachRemote).with(MessageParts.RemoteServices, "").done().reply();
.command(BusCommand.WebsocketChannelOpen) .with(MessageParts.WebSocketToken, reconnectionToken) .done().sendNowWith(ServerMessageBusImpl.this, false);
public void callback(Message c) { MessageBuilder.createConversation(c) .subjectProvided().noErrorHandling() .sendNowWith(bus); } });
@Override public void callback(final Message message) { invokeMethodFromMessage(message); createConversation(message) .subjectProvided() .noErrorHandling().sendNowWith(bus); } }
/** * Sends a disconnect command message to the client bus * * @param bus * - the bus responsible for sending messages for the server * @param message * - the message that has encountered the error */ public static void disconnectRemoteBus(MessageBus bus, Message message) { MessageBuilder.createConversation(message) .toSubject("ClientBus") .command(BusCommand.Disconnect) .noErrorHandling().sendNowWith(bus); }
@Override public void callback(final Message message) { createConversation(message) .subjectProvided() .with("MethodReply", invokeMethodFromMessage(message)) .noErrorHandling().sendNowWith(bus); } }
.with(MessageParts.ErrorTo, message.get(String.class, MessageParts.ErrorTo)) .with(MessageParts.Throwable, message.getResource(Object.class, "Exception")) .noErrorHandling().sendNowWith(bus);
.command(BusCommand.WebsocketChannelOpen) .with(MessageParts.WebSocketToken, reconnectionToken) .done().sendNowWith(ServerMessageBusImpl.this, false);
.sendNowWith(bus); .with(HistoryParts.HISTORY_RECORDS, results2) .noErrorHandling() .sendNowWith(bus);
.with(SecurityParts.Name, name) .noErrorHandling() .sendNowWith(bus); .command(SecurityCommands.FailedAuth) .with(SecurityParts.Name, name) .noErrorHandling().sendNowWith(bus);