Errai 3.0.1-SNAPSHOT

org.jboss.errai.bus.client.api.builder
Interface MessageBuildSubject<R>

All Superinterfaces:
MessageBuild, Sendable

public interface MessageBuildSubject<R>
extends MessageBuild

This interface, MessageBuildSubject, is a template for setting the subject of a message. This ensures that the message is constructed properly


Method Summary
 MessageBuildCommand<R> subjectProvided()
          If this function is set, there is no need for a subject to be set for this message.
 MessageBuildCommand<R> toSubject(String subject)
          Sets the subject/receipent of the message, and returns a MessageBuildCommand, which needs to be constructed following setting the subject
 
Methods inherited from interface org.jboss.errai.bus.client.api.builder.MessageBuild
getMessage
 

Method Detail

toSubject

MessageBuildCommand<R> toSubject(String subject)
Sets the subject/receipent of the message, and returns a MessageBuildCommand, which needs to be constructed following setting the subject

Parameters:
subject - - the subject of the message
Returns:
an instance of MessageBuildCommand

subjectProvided

MessageBuildCommand<R> subjectProvided()
If this function is set, there is no need for a subject to be set for this message. Just move on...

Returns:
an instance of MessageBuildCommand

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.