incubator-s4-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthieu Morel <matth...@yahoo-inc.com>
Subject Re: close method in ProcessingElement
Date Sun, 05 May 2013 12:48:05 GMT
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<http://www.otnira.com/>


Mime
View raw message