[TIBCO.EMS .NET client library 6.3 documentation]
Assembly: TIBCO.EMS (in TIBCO.EMS.dll)
Determine whether client callbacks may call close methods
Namespace:
TIBCO.EMSAssembly: TIBCO.EMS (in TIBCO.EMS.dll)
Syntax
Remarks
According to the JMS specification, Close methods (that is, MessageConsumer.Close, Session.Close, Connection.Close) cannot return while any message callbacks (that is, EMSMessageHandler, IMessageListener.OnMessage) are running. As a result, a message callback must not call a Close method, lest it cause a deadlock. The SetAllowCloseInCallback method explicitly overrides this JMS requirement, permitting callbacks to call Close without deadlock (that is, embedded Close calls do not wait for callbacks to return).
This method returns, if it is allowed to call Close in callbacks.