Package com.yahoo.messagebus
Class NetworkMessageBus
- java.lang.Object
-
- com.yahoo.messagebus.NetworkMessageBus
-
- Direct Known Subclasses:
RPCMessageBus
public class NetworkMessageBus extends java.lang.Object
The combination of a messagebus and a network over which it may send data.- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description NetworkMessageBus(Network network, MessageBus messageBus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
destroy()
Irreversibly destroys the content of this.MessageBus
getMessageBus()
Returns the contained message bus objectNetwork
getNetwork()
Returns the network of this as a Network
-
-
-
Constructor Detail
-
NetworkMessageBus
public NetworkMessageBus(Network network, MessageBus messageBus)
-
-
Method Detail
-
getMessageBus
public MessageBus getMessageBus()
Returns the contained message bus object
-
getNetwork
public Network getNetwork()
Returns the network of this as a Network
-
destroy
public boolean destroy()
Irreversibly destroys the content of this.- Returns:
- whether this destroyed anything, or if it was already destroyed
-
-