Logo Search packages:      
Sourcecode: libjgroups-java version File versions

abstract void org::jgroups::Channel::send ( Message  msg  )  throws ChannelNotConnectedException, ChannelClosedException [pure virtual]

Sends a message to a (unicast) destination. The message contains

  1. a destination address (Address). A null address sends the message to all group members.
  2. a source address. Can be left empty. Will be filled in by the protocol stack.
  3. a byte buffer. The message contents.
  4. several additional fields. They can be used by application programs (or patterns). E.g. a message ID, a oneway field which determines whether a response is expected etc.
Parameters:
msg The message to be sent. Destination and buffer should be set. A null destination means to send to all group members.
Exceptions:
ChannelNotConnectedException The channel must be connected to send messages.
ChannelClosedException The channel is closed and therefore cannot be used any longer. A new channel has to be created first.

Implements org::jgroups::Transport.

Implemented in org::jgroups::JChannel, and org::jgroups::mux::MuxChannel.

Referenced by org::jgroups::blocks::ReplicatedHashtable::clear(), org::jgroups::blocks::NotificationBus::getCacheFromMember(), org::jgroups::blocks::ReplicatedHashtable::put(), org::jgroups::blocks::ReplicatedHashtable::putAll(), org::jgroups::blocks::ReplicatedHashtable::remove(), org::jgroups::blocks::NotificationBus::sendNotification(), org::jgroups::tests::ConnectTest::testDisconnectConnectSendTwo(), org::jgroups::tests::MultiplexerConcurrentTest::testTwoMessagesFromDifferentSendersToDifferentServices(), org::jgroups::tests::MultiplexerConcurrentTest::testTwoMessagesFromDifferentSendersToSameService(), org::jgroups::tests::MultiplexerConcurrentTest::testTwoMessagesFromSameSenderToDifferentServices(), and org::jgroups::tests::MultiplexerConcurrentTest::testTwoMessagesFromSameSenderToSameService().


Generated by  Doxygen 1.6.0   Back to index