Class ManagedRepo

  • All Implemented Interfaces:
    DomainRepo
    Direct Known Subclasses:
    OrderbookRepo

    public abstract class ManagedRepo
    extends Object
    implements DomainRepo
    Domain repos that do active memory management. This works by waking up every few timeslots and running a cleanup method.
    Author:
    John Collins
    • Field Detail

      • timeService

        @Autowired
        protected TimeService timeService
      • interval

        protected long interval
      • offset

        protected long offset
    • Constructor Detail

      • ManagedRepo

        public ManagedRepo()
    • Method Detail

      • setup

        protected void setup()
      • recycle

        public void recycle()
        Description copied from interface: DomainRepo
        Implementations must clear out the repository in preparation for a new simulation.
        Specified by:
        recycle in interface DomainRepo
      • doCleanup

        protected abstract void doCleanup()