use of com.yahoo.messagebus.DestinationSessionParams in project vespa by vespa-engine.
the class ServerThreadingTestCase method newMbusServer.
private static MbusServer newMbusServer(final CurrentContainer container, final LocalWire wire) {
final SharedMessageBus mbus = new SharedMessageBus(new MessageBus(new LocalNetwork(wire), new MessageBusParams().addProtocol(new SimpleProtocol())));
final SharedDestinationSession session = mbus.newDestinationSession(new DestinationSessionParams());
final MbusServer server = new MbusServer(container, session);
session.release();
mbus.release();
return server;
}
Aggregations