this patch adds EndpointBase::addPeriodic to enable timer events

An implementation of addPeriodic for EndpointBase.