https://issues.apache.org/jira/browse/AMQ-5251

Synchronize method and remove old deprecated schedule method.