synchronized (AsyncTwitterImpl.class) {
if (null == AsyncTwitterImpl.dispatcher) {
// dispatcher is held statically, but it'll be instantiated with
// the configuration instance associated with this TwitterStream
// instance which invokes getDispatcher() on the first time.
AsyncTwitterImpl.dispatcher = new DispatcherFactory(conf).getInstance();
}
}
}
return AsyncTwitterImpl.dispatcher;
}