/** * Returns the userSpecObj that was specified in the ReactorOptions when * this Reactor was created. * * @return the userSpecObj */ public Object userSpecObj() { return _reactorOptions.userSpecObj(); }
/** * Create {@link ReactorOptions}. * * @return {@link ReactorOptions} object * * @see ReactorOptions */ public static ReactorOptions createReactorOptions() { return new ReactorOptions(); }
/** * Xml tracing. * * @return true, if successful */ /* Returns whether or not XML tracing is enabled. */ boolean xmlTracing() { return _reactor._reactorOptions.xmlTracing(); }
_rsslReactorOpts.enableXmlTracing(); _rsslReactorOpts.userSpecObj(this);
/** Creates a TestReactor. */ public TestReactor() { ReactorOptions reactorOptions = ReactorFactory.createReactorOptions(); _eventQueue = new LinkedList<TestReactorEvent>(); _componentList = new LinkedList<TestReactorComponent>(); _errorInfo = ReactorFactory.createReactorErrorInfo(); if (_enableReactorXmlTracing) reactorOptions.enableXmlTracing(); _reactor = ReactorFactory.createReactor(reactorOptions, _errorInfo); try { _selector = Selector.open(); } catch (IOException e) { e.printStackTrace(); fail("Caught I/O exception"); } }
_reactorOptions.copy(options);
_reactorOptions.clear(); if ((_reactor = ReactorFactory.createReactor(_reactorOptions, _errorInfo)) == null)
_rsslReactorOpts.enableXmlTracing(); _rsslReactorOpts.userSpecObj(this);
reactorOptions.enableXmlTracing();
reactorOptions.enableXmlTracing();
static Reactor createReactor(ReactorErrorInfo errorInfo) { ReactorOptions reactorOptions = ReactorFactory.createReactorOptions(); assertNotNull(reactorOptions); assertEquals(ReactorReturnCodes.PARAMETER_INVALID, reactorOptions.userSpecObj(null)); String userSpecObject = "test"; assertEquals(ReactorReturnCodes.SUCCESS, reactorOptions.userSpecObj(userSpecObject)); Reactor reactor = ReactorFactory.createReactor(reactorOptions, errorInfo); assertNotNull(reactor); assertEquals(ReactorReturnCodes.SUCCESS, errorInfo.code()); assertEquals(userSpecObject, reactor.userSpecObj()); return reactor; }
if (_reactorOptions.xmlTracing() == true)
reactorOptions.enableXmlTracing();
if (_reactorOptions.xmlTracing() == true)
reactorOptions.enableXmlTracing();
if (_reactorOptions.xmlTracing() == true)
if (_reactorOptions.xmlTracing() == true)
if (_reactorOptions.xmlTracing() == true)
if (_reactorOptions.xmlTracing() == true)
if (msgBuf != null) if (_reactorOptions.xmlTracing() == true)