Hi Matthieu, I'm trying to understand some existing S4 code. So, that means, by calling the close() method, the PE instances are still alive, just that the resources that allocated to the instances are freed up. Are my statements correct?
What are the normal use case for this close method to be invoked? And, what is "poison" event? regards, Arinto www.otnira.com On Sun, May 5, 2013 at 2:48 PM, Matthieu Morel <matth...@yahoo-inc.com>wrote: > Hi Arinto, > > that method is for properly cleaning up a PE instance. It could be used > to release resources that may be allocated within PE instances, and it > could be triggered by some special event (some kind of "poison" event), or > some other condition. > > It can be called from user code and custom behavior for releasing > resources can be specified in "onRemove()" method. > > Do you have a specific usage in mind? > > Matthieu > > > On May 4, 2013, at 17:17 , Arinto Murdopo wrote: > > Hi all, > > What does close() method means in org.apache.s4.core.ProcessingElement > class? > > The > documentation<https://people.apache.org/~mmorel/apache-s4-0.6.0-incubating-doc/javadoc/org/apache/s4/core/ProcessingElement.html#close%28%29>says > nothing regarding this method. > > best regards, > > Arinto > www.otnira.com > > >