public class BroadcastOptions extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
RESPONSE_IGNORED |
static boolean |
RESPONSE_REQUESTED |
static boolean |
SENDER_EXCLUDED |
static boolean |
SENDER_INCLUDED |
| Constructor and Description |
|---|
BroadcastOptions(boolean aSenderIncluded,
boolean aResponseRequested)
Creates a new BroadcastOptions instance.
|
BroadcastOptions(boolean aSenderIncluded,
boolean aResponseRequested,
boolean aAsync)
Creates a new BroadcastOptions instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAsync() |
boolean |
isResponseRequested()
Returns if the server is supposed to send a response for the broadcast
operation.
|
boolean |
isSenderIncluded()
Returns if the sender is supposed to be included in the pending broadcast
operation.
|
void |
setAsync(boolean aAsync) |
void |
setResponseRequested(boolean responseRequested)
Specifies if the server is supposed to send a response for the broadcast
operation.
|
void |
setSenderIncluded(boolean aSenderIncluded)
Specifies if the sender is supposed to be included in the pending
broadcast operation.
|
public static final boolean SENDER_INCLUDED
public static final boolean SENDER_EXCLUDED
public static final boolean RESPONSE_REQUESTED
public static final boolean RESPONSE_IGNORED
public BroadcastOptions(boolean aSenderIncluded,
boolean aResponseRequested)
aSenderIncluded - true if to include sender, false otherwiseaResponseRequested - true if to response is requested, false
otherwisepublic BroadcastOptions(boolean aSenderIncluded,
boolean aResponseRequested,
boolean aAsync)
aSenderIncluded - true if to include sender, false otherwiseaResponseRequested - true if to response is requested, false otherwiseaAsync - true if to broadcast asynchronouslypublic boolean isSenderIncluded()
public void setSenderIncluded(boolean aSenderIncluded)
aSenderIncluded - Sender supposed to be included in the pending broadcast?public boolean isResponseRequested()
public void setResponseRequested(boolean responseRequested)
responseRequested - Server supposed to send a response?public boolean isAsync()
public void setAsync(boolean aAsync)
aAsync - the async to setCopyright © 2013. All Rights Reserved.