Class BucketServiceFactory

java.lang.Object
overit.geocallapp.wfm.roughplanning.bl.bucket.BucketServiceFactory

public class BucketServiceFactory extends Object
The BucketServiceFactory class is responsible for creating instances of the BucketService interface based on the specified TimeUnit and TimeSize.
Since:
18.0
  • Method Details

    • getBucketService

      public static BucketService getBucketService(Long roughPlanning, TimeUnit timeUnit, Long timeSize)
      Returns a specific bucket service
      Parameters:
      roughPlanning - the id of rough planning
      timeUnit - the time unit for the bucket creation
      timeSize - the time size for the bucket creation
      Returns:
      an instance of BucketService
      Throws:
      UnsupportedOperationException - if time unit is of unknown type