Class 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​(com.yahoo.messagebus.network.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 object
      com.yahoo.messagebus.network.Network getNetwork()
      Returns the network of this as a Network
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NetworkMessageBus

        public NetworkMessageBus​(com.yahoo.messagebus.network.Network network,
                                 MessageBus messageBus)
    • Method Detail

      • getMessageBus

        public MessageBus getMessageBus()
        Returns the contained message bus object
      • getNetwork

        public com.yahoo.messagebus.network.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