1 ##############################################################################
2 # Copyright (c) 2017 ZTE Corporation and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
13 @six.add_metaclass(abc.ABCMeta)
14 class BaseConsumer(object):
16 def __init__(self, conf, log):
19 self._notified_time = None
22 def notified_time(self):
23 return self._notified_time
26 def notified_time(self, notified_time):
27 self._notified_time = notified_time