Interceptors should be thread-safe, since sources can have multiple threads (like Avro Source), in which case if the interceptors are not thread-safe, then you would hit unexpected consequences.
Thanks, Hari On Tuesday, August 27, 2013 at 7:59 AM, Israel Ekpo wrote: > Zoraida, > > You can take a look at the source code for the following interceptors to see > how they are implemented. > > http://flume.apache.org/releases/content/1.4.0/apidocs/org/apache/flume/interceptor/package-summary.html > > > They do have member fields (attributes) and they are mostly private. > > http://flume.apache.org/source.html > > You can also grab the source code from git and then navigate to the > folders/package that contains these classes. > > $ git clone http://git-wip-us.apache.org/repos/asf/flume.git flume > > Author and Instructor for the Upcoming Book and Lecture Series > Massive Log Data Aggregation, Processing, Searching and Visualization with > Open Source Software > http://massivelogdata.com > > > > On 26 August 2013 09:25, ZORAIDA HIDALGO SANCHEZ <[email protected] > (mailto:[email protected])> wrote: > > Hi all, > > > > can I create an interceptor with member attributes? > > > > Thanks. > >
