A stochastic clearing model with a Brownian and a compound Poisson component