Threads are often designed in two ways (see java tutorials): either by extending the Thread class or by implementing the Runnable class. Either way, you need to specify what wil
It sounds to me like you should actually have two different classes: InformationOfTypeAFetcher
and InformationOfTypeBFetcher
, each of which should implement Runnable
. Each of them may have a reference to an instance of your OnlineResourceAdapter
(or something similar) but if they're doing different things, they should be different classes.