@Override
    public TriggerPolicy<T> getTriggerPolicy(TriggerHandler triggerHandler, EvictionPolicy<T> evictionPolicy) {
        return new TimeTriggerPolicy<>(windowConfig.getSlidingLength(), triggerHandler, evictionPolicy);
    }
@ Override public TriggerPolicy < T > getTriggerPolicy ( TriggerHandler triggerHandler , EvictionPolicy < T > evictionPolicy ) { return new TimeTriggerPolicy < > ( windowConfig . getSlidingLength ( ) , triggerHandler , evictionPolicy ) ; }
Returns a {@code TriggerPolicy} which triggers for every given sliding duration.