InMemoryTransportFactory

In-memory implementation of the TransportFactory.

Publishers and subscribers must be in the same JVM. Therefore this factory usage should be limited to tests.

Inheritors

Constructors

Link copied to clipboard
protected void InMemoryTransportFactory()
Prevent direct instantiation from outside of the inheritance tree.

Functions

Link copied to clipboard
public synchronized void close()
Link copied to clipboard
public final synchronized Publisher createPublisher(ChannelId id)
Creates a Publisher channel with the given ID.
Link copied to clipboard
public final synchronized Subscriber createSubscriber(ChannelId id)
Creates a Subscriber channel with the given ID.
Link copied to clipboard
public synchronized boolean isOpen()
Tells if the object is still open.
Link copied to clipboard
Creates a new instance of InMemoryTransportFactory.
Link copied to clipboard
protected Subscriber newSubscriber(ChannelId id)
Creates a new instance of subscriber.

Inherited functions

Link copied to clipboard
public void checkOpen()
Ensures that the object is open.