/** * Create a {@link Reactor}, including all necessary internal memory and * threads. Once the RsslReactor is created, use * {@link Reactor#connect(ReactorConnectOptions, ReactorRole, ReactorErrorInfo)} * or {@link Reactor#accept(com.thomsonreuters.upa.transport.Server, ReactorAcceptOptions, * ReactorRole, ReactorErrorInfo)} to create new {@link ReactorChannel}. * Options are passed in via the {@link ReactorOptions}. * * @param options the options * @param errorInfo the error info * @return a Reactor object or null. If null, check errorInfo for additional * information regarding the failure */ public static Reactor createReactor(ReactorOptions options, ReactorErrorInfo errorInfo) { if (errorInfo == null) { System.out.println("ReactoryFactor.createReactor: ReactorErrorInfo cannot be null, reactor not created."); return null; } Reactor reactor = new Reactor(options, errorInfo); if (!reactor.isShutdown()) return reactor; else return null; }