closes this resource , relinquishing any underlying resources . this method is invoked automatically on objects managed by the try - with-resources statement . while this interface method is declared to throw exception , implementers are strongly encouraged to declare concrete implementations of the close method tothrow more specific exceptions , or to throw no exception at all if the close operation can not fail . cases where the close operation may fail require careful attention by implementers . it is strongly advised to relinquish the underlying resources and to internally mark the resource as closed , prior to throwing the exception . the close method is unlikely to be invoked more than once and sothis ensures that the resources are released in a timely manner . furthermore it reduces problems that could arise when the resource wraps , or is wrapped , by another resource . implementers of this interface are also strongly advised to not have the close method throw interruptedexception . this exception interacts with a thread 's interrupted status , and runtime misbehavior is likely to occur if an interruptedexception is @linkplain throwable #addsuppressed suppressed . more generally , if it would cause problems for an exception to be suppressed , the autocloseable.close method should not throw it . note that unlike the closeable #close close method of closeable , this close methodis not required to be idempotent . in other words , calling this close method more than once may have somevisible side effect , unlike closeable.close which isrequired to have no effect if called more than once . however , implementers of this interface are strongly encouraged to make their close methods idempotent . concode_field_sep int streamId concode_elem_sep Aeron.Context ctx concode_elem_sep boolean compress concode_elem_sep BusySpinIdleStrategy busySpinIdleStrategy concode_elem_sep Publication publication concode_elem_sep String channel concode_elem_sep int NUM_RETRIES concode_elem_sep Aeron aeron concode_elem_sep Logger log concode_elem_sep boolean init concode_elem_sep int publishRetryTimeOut concode_field_sep void init concode_elem_sep void sendBuffer concode_elem_sep void publish concode_elem_sep void publish
void function ( ) { if ( publication != null ) { CloseHelper . quietClose ( publication ) ; } }