Next: Connecting to a channel
Up: Channel
Previous: Channel properties
  Contents
Setting options
A number of options can be set in a channel. To do so, the following method is
used:
public void setOpt(int option, Object value);
Arguments are the options number and a value. The following options are currently
recognized:
- Channel.VIEW
- The argument must be a boolean value Boolean. If true,
views will be received (default is true). If false, no views
will be received.
- Channel.SUSPECT
- The argument is also a boolean object. If set to true,
suspicion messages will be received, otherwise not
(default is false).
- Channel.BLOCK
- The argument is a boolean object. If true, block messages
will be received. If this option is set to true, views will
also be set to true. Default is false.
- Channel.LOCAL
- Local delivery. The argument is a boolean value. If set to
true, a member will receive all messages it sent to
itself. Otherwise, all messages sent by itself will be
discarded. This option allows to send messages to the group,
without receiving a copy. Default is true (members will
receive their own copy of messages multicast to the group).
- Channel.GET_STATE_EVENTS
- Reception of GetStateEvents. If this option is
turned off, then the group's state may be retrieved,
but this member will not respond to requests for its
state (client role).
The equivalent method to get options is getOpt():
public Object getOpt(int option);
Given an option, the current value of the option is returned.
Next: Connecting to a channel
Up: Channel
Previous: Channel properties
  Contents
Bela Ban
2002-11-16