horizons in relativity

an accelerated object disappears behind a horizon as well as an object at the Schwarzschild radius of a black hole: is there a difference between the two cases? is there an analogous effect in cosmology?