Updated sink to check on interval basis when using HTTP
Updated sink to use batchsize and interval