congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
MessageBuildSendableWithReply.sendNowWith
Code IndexAdd Tabnine to your IDE (free)

How to use
sendNowWith
method
in
org.jboss.errai.bus.client.api.builder.MessageBuildSendableWithReply

Best Java code snippets using org.jboss.errai.bus.client.api.builder.MessageBuildSendableWithReply.sendNowWith (Showing top 20 results out of 315)

origin: org.jboss.errai/errai-bus

public static void sendClientError(MessageBus bus, String queueId, String errorMessage, String additionalDetails) {
 try {
  MessageBuilder.createMessage()
    .toSubject(DefaultErrorCallback.CLIENT_ERROR_SUBJECT)
    .with("ErrorMessage", errorMessage)
    .with("AdditionalDetails", additionalDetails)
    .with(MessageParts.SessionID, queueId)
    .flag(RoutingFlag.NonGlobalRouting)
    .noErrorHandling().sendNowWith(bus);
 }
 catch (RuntimeException e) {
  // note: this is handled this way, because this is shared server and client code.
  if (e.getClass().getName().equals("org.jboss.errai.bus.server.QueueUnavailableException")) {
   // ignore.
  }
  throw e;
 }
}
origin: org.jboss.errai/errai-bus

 protected static void invokeDefaultErrorHandlers(final Throwable throwable) {
  MessageBuilder.createMessage(DefaultErrorCallback.CLIENT_ERROR_SUBJECT).signalling()
      .with(MessageParts.Throwable, throwable).defaultErrorHandling().sendNowWith(ErraiBus.get());
 }
}
origin: org.jboss.errai/errai-bus

.with(MessageParts.AdditionalDetails, a.toString())
.with(MessageParts.Throwable, e)
.noErrorHandling().sendNowWith(ErraiBus.get());
.with(MessageParts.ErrorMessage, "Null exception reference")
.with(MessageParts.AdditionalDetails, "No additional details")
.noErrorHandling().sendNowWith(ErraiBus.get());
origin: org.jboss.errai/errai-workspaces

private void notifyPendingClients() {
  MessageBuilder.createMessage()
      .toSubject(subject)
      .command(ShoutboxCmd.SUBMIT_OFFER)
      .with(ShoutboxCmdParts.SUBJECT, subject)
      .with(ShoutboxCmdParts.PROVIDER, provider)
      .noErrorHandling().sendNowWith(bus);
  matchedClients.addAll(pendingClients);
  pendingClients.clear();
}
origin: org.jboss.errai/errai-workspaces

  public void onClick(ClickEvent event) {
    createMessage()
        .toSubject((String) instanceProperties.get(LayoutParts.Subject.name()))
        .noErrorHandling().sendNowWith(ErraiBus.get());
    window.hide();
  }
});
origin: org.jboss.errai/errai-workspaces

 public void onClick(ClickEvent clickEvent)
 {
  MessageBuilder.createMessage()
    .toSubject("AuthenticationService")
    .command(SecurityCommands.EndSession)
    .noErrorHandling().sendNowWith(ErraiBus.get());
 }
}
origin: errai/errai

 protected static void invokeDefaultErrorHandlers(final Throwable throwable) {
  MessageBuilder.createMessage(DefaultErrorCallback.CLIENT_ERROR_SUBJECT).signalling()
      .with(MessageParts.Throwable, throwable).defaultErrorHandling().sendNowWith(ErraiBus.get());
 }
}
origin: org.jboss.errai/errai-workspaces

 public void run() {
  createMessage()
    .toSubject("AuthorizationService")
    .with(MessageParts.ReplyTo, "AuthorizationListener")
    .noErrorHandling().sendNowWith(ErraiBus.get());
 }
};
origin: errai/errai

@Override
public void send(T value) {
 if (replyTo != null) {
  MessageBuilder.createMessage()
      .toSubject(toSubject)
      .with(MessageParts.ReplyTo, replyTo)
      .with(MessageParts.Value, value)
      .done().sendNowWith(messageBus);
 }
 else {
  MessageBuilder.createMessage()
      .toSubject(toSubject)
      .with(MessageParts.Value, value)
      .done().sendNowWith(messageBus);
 }
}
origin: errai/errai

@Override
public void send(T value, ErrorCallback errorCallback) {
 if (replyTo != null) {
  MessageBuilder.createMessage()
      .toSubject(toSubject)
      .with(MessageParts.ReplyTo, replyTo)
      .with(MessageParts.Value, value)
      .errorsHandledBy(errorCallback)
      .sendNowWith(messageBus);
 }
 else {
  MessageBuilder.createMessage()
      .toSubject(toSubject)
      .with(MessageParts.Value, value)
      .errorsHandledBy(errorCallback)
      .sendNowWith(messageBus);
 }
}
origin: org.jboss.errai/errai-ioc-bus-support

@Override
public void send(T value) {
 if (replyTo != null) {
  MessageBuilder.createMessage()
      .toSubject(toSubject)
      .with(MessageParts.ReplyTo, replyTo)
      .with(MessageParts.Value, value)
      .done().sendNowWith(messageBus);
 }
 else {
  MessageBuilder.createMessage()
      .toSubject(toSubject)
      .with(MessageParts.Value, value)
      .done().sendNowWith(messageBus);
 }
}
origin: org.jboss.errai/errai-workspaces

public void submitOffer(String provider, String subjectMatter) {
  createMessage()
      .toSubject(ShoutboxModule.INBOX)
      .command(ShoutboxCmd.SUBMIT_OFFER)
      .with(ShoutboxCmdParts.SUBJECT, subjectMatter)
      .with(ShoutboxCmdParts.PROVIDER, provider)
      .noErrorHandling().sendNowWith(bus);
}
origin: org.jboss.errai/errai-workspaces

public void onClose(CloseEvent closeEvent) {
  createMessage()
      .toSubject("org.jboss.errai.WorkspaceLayout")
      .command(LayoutCommands.CloseTab)
      .with(LayoutParts.InstanceID, instanceId)
      .noErrorHandling().sendNowWith(ErraiBus.get());
}
origin: org.jboss.errai/errai-workspaces

public void retractOffer(String provider, String subjectMatter) {
  createMessage()
      .toSubject(ShoutboxModule.INBOX)
      .command(ShoutboxCmd.RETIRE_OFFER)
      .with(ShoutboxCmdParts.SUBJECT, subjectMatter)
      .with(ShoutboxCmdParts.PROVIDER, provider)
      .noErrorHandling().sendNowWith(bus);
}
origin: org.jboss.errai/errai-workspaces

  public void retireOffer(String client, String subjectMatter) {

    MessageBuilder.createMessage()
        .toSubject(ShoutboxModule.INBOX)
        .command(ShoutboxCmd.RETIRE_OFFER)
        .with(ShoutboxCmdParts.SUBJECT, subjectMatter)
        .with(ShoutboxCmdParts.CLIENT, client)
        .noErrorHandling()
        .sendNowWith(bus);
  }
}
origin: org.jboss.errai/errai-workspaces

public void closeTab(String instanceId) {
  MessageBuilder.createMessage()
      .toSubject(getInstanceSubject(instanceId))
      .command(LayoutCommands.CloseTab)
      .with(LayoutParts.InstanceID, instanceId)
      .noErrorHandling().sendNowWith(ErraiBus.get());
}
origin: org.jboss.errai/errai-workspaces

private void notifyWorkspace()
{
 MessageBuilder.createMessage()
   .toSubject(Workspace.SUBJECT)
   .command(LayoutCommands.Initialize)
   .noErrorHandling().sendNowWith(ErraiBus.get());
 AuthenticationContext authenticationContext = Registry.get(SecurityService.class).getAuthenticationContext();
 String userName = authenticationContext != null ?
   authenticationContext.getName() : "NoAuthentication";
 MessageBuilder.createMessage()
   .toSubject("appContext.login")
   .with("username", userName)
   .noErrorHandling()
   .sendNowWith(ErraiBus.get());
}
origin: org.jboss.errai/errai-workspaces

 public void onClick(ClickEvent clickEvent)
 {
  Log.debug("ToolID: "+ tool.getId());
  MessageBuilder.createMessage()
    .toSubject(Workspace.SUBJECT)
    .command(LayoutCommands.ActivateTool)
    .with(LayoutParts.TOOL, tool.getId())
    .with(LayoutParts.TOOLSET, toolSetId)
    .noErrorHandling()
    .sendNowWith(ErraiBus.get());
 }
}
origin: errai/errai

public static Subscription subscribe(final String eventType, final AbstractCDIEventCallback<?> callback) {
 if (isRemoteCommunicationEnabled() && ErraiBus.get() instanceof ClientMessageBusImpl
     && ((ClientMessageBusImpl) ErraiBus.get()).getState().equals(BusState.CONNECTED)) {
  MessageBuilder.createMessage()
    .toSubject(CDI.SERVER_DISPATCHER_SUBJECT)
    .command(CDICommands.RemoteSubscribe)
    .with(CDIProtocol.BeanType, eventType)
    .with(CDIProtocol.Qualifiers, callback.getQualifiers())
    .noErrorHandling().sendNowWith(ErraiBus.get());
 }
 return subscribeLocal(eventType, callback, false);
}
origin: org.jboss.errai/errai-cdi-shared

public static Subscription subscribe(final String eventType, final AbstractCDIEventCallback<?> callback) {
 if (isRemoteCommunicationEnabled() && ErraiBus.get() instanceof ClientMessageBusImpl
     && ((ClientMessageBusImpl) ErraiBus.get()).getState().equals(BusState.CONNECTED)) {
  MessageBuilder.createMessage()
    .toSubject(CDI.SERVER_DISPATCHER_SUBJECT)
    .command(CDICommands.RemoteSubscribe)
    .with(CDIProtocol.BeanType, eventType)
    .with(CDIProtocol.Qualifiers, callback.getQualifiers())
    .noErrorHandling().sendNowWith(ErraiBus.get());
 }
 return subscribeLocal(eventType, callback, false);
}
org.jboss.errai.bus.client.api.builderMessageBuildSendableWithReplysendNowWith

Popular methods of MessageBuildSendableWithReply

  • getMessage
  • repliesTo
  • repliesToSubject
  • sendGlobalWith

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now