A implementation of PromiseA+ in java 8