import Backoff from './Backoff' ; import BackoffFactory from './BackoffFactory' ; import FullJitterBackoff from './FullJitterBackoff' ; import FullJitterLimitedBackoff from './FullJitterLimitedBackoff' ; export default class FullJitterBackoffFactory implements BackoffFactory { constructor ( private fixedWaitMs , private shortBackoffMs , private longBackoffMs ) { } create ( ) { return new FullJitterBackoff ( this . fixedWaitMs , this . shortBackoffMs , this . longBackoffMs ) ; } createWithLimit ( limit ) { return new FullJitterLimitedBackoff ( this . fixedWaitMs , this . shortBackoffMs , this . longBackoffMs , limit ) ; } }