[33] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
| 2 | <!--NewPage--> |
---|
| 3 | <HTML> |
---|
| 4 | <HEAD> |
---|
| 5 | <!-- Generated by javadoc (build 1.6.0_18) on Tue Dec 11 11:47:11 GMT 2012 --> |
---|
| 6 | <TITLE> |
---|
| 7 | ShutdownNotifierComponent |
---|
| 8 | </TITLE> |
---|
| 9 | |
---|
| 10 | <META NAME="date" CONTENT="2012-12-11"> |
---|
| 11 | |
---|
| 12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
---|
| 13 | |
---|
| 14 | <SCRIPT type="text/javascript"> |
---|
| 15 | function windowTitle() |
---|
| 16 | { |
---|
| 17 | if (location.href.indexOf('is-external=true') == -1) { |
---|
| 18 | parent.document.title="ShutdownNotifierComponent"; |
---|
| 19 | } |
---|
| 20 | } |
---|
| 21 | </SCRIPT> |
---|
| 22 | <NOSCRIPT> |
---|
| 23 | </NOSCRIPT> |
---|
| 24 | |
---|
| 25 | </HEAD> |
---|
| 26 | |
---|
| 27 | <BODY BGCOLOR="white" onload="windowTitle();"> |
---|
| 28 | <HR> |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | <!-- ========= START OF TOP NAVBAR ======= --> |
---|
| 32 | <A NAME="navbar_top"><!-- --></A> |
---|
| 33 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
---|
| 34 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 35 | <TR> |
---|
| 36 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 37 | <A NAME="navbar_top_firstrow"><!-- --></A> |
---|
| 38 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 39 | <TR ALIGN="center" VALIGN="top"> |
---|
| 40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 42 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 47 | </TR> |
---|
| 48 | </TABLE> |
---|
| 49 | </TD> |
---|
| 50 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 51 | </EM> |
---|
| 52 | </TD> |
---|
| 53 | </TR> |
---|
| 54 | |
---|
| 55 | <TR> |
---|
| 56 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 57 | <A HREF="../../../../com/rabbitmq/client/impl/SetQueue.html" title="class in com.rabbitmq.client.impl"><B>PREV CLASS</B></A> |
---|
| 58 | <A HREF="../../../../com/rabbitmq/client/impl/SocketFrameHandler.html" title="class in com.rabbitmq.client.impl"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 59 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 60 | <A HREF="../../../../index.html?com/rabbitmq/client/impl/ShutdownNotifierComponent.html" target="_top"><B>FRAMES</B></A> |
---|
| 61 | <A HREF="ShutdownNotifierComponent.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 62 | <SCRIPT type="text/javascript"> |
---|
| 63 | <!-- |
---|
| 64 | if(window==top) { |
---|
| 65 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 66 | } |
---|
| 67 | //--> |
---|
| 68 | </SCRIPT> |
---|
| 69 | <NOSCRIPT> |
---|
| 70 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 71 | </NOSCRIPT> |
---|
| 72 | |
---|
| 73 | |
---|
| 74 | </FONT></TD> |
---|
| 75 | </TR> |
---|
| 76 | <TR> |
---|
| 77 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 78 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 79 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 80 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 81 | </TR> |
---|
| 82 | </TABLE> |
---|
| 83 | <A NAME="skip-navbar_top"></A> |
---|
| 84 | <!-- ========= END OF TOP NAVBAR ========= --> |
---|
| 85 | |
---|
| 86 | <HR> |
---|
| 87 | <!-- ======== START OF CLASS DATA ======== --> |
---|
| 88 | <H2> |
---|
| 89 | <FONT SIZE="-1"> |
---|
| 90 | com.rabbitmq.client.impl</FONT> |
---|
| 91 | <BR> |
---|
| 92 | Class ShutdownNotifierComponent</H2> |
---|
| 93 | <PRE> |
---|
| 94 | java.lang.Object |
---|
| 95 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.rabbitmq.client.impl.ShutdownNotifierComponent</B> |
---|
| 96 | </PRE> |
---|
| 97 | <DL> |
---|
| 98 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/rabbitmq/client/ShutdownNotifier.html" title="interface in com.rabbitmq.client">ShutdownNotifier</A></DD> |
---|
| 99 | </DL> |
---|
| 100 | <DL> |
---|
| 101 | <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../com/rabbitmq/client/impl/AMQChannel.html" title="class in com.rabbitmq.client.impl">AMQChannel</A>, <A HREF="../../../../com/rabbitmq/client/impl/AMQConnection.html" title="class in com.rabbitmq.client.impl">AMQConnection</A></DD> |
---|
| 102 | </DL> |
---|
| 103 | <HR> |
---|
| 104 | <DL> |
---|
| 105 | <DT><PRE>public class <B>ShutdownNotifierComponent</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../com/rabbitmq/client/ShutdownNotifier.html" title="interface in com.rabbitmq.client">ShutdownNotifier</A></DL> |
---|
| 106 | </PRE> |
---|
| 107 | |
---|
| 108 | <P> |
---|
| 109 | A class that manages <A HREF="../../../../com/rabbitmq/client/ShutdownListener.html" title="interface in com.rabbitmq.client"><CODE>ShutdownListener</CODE></A>s and remembers the reason for a shutdown. Both |
---|
| 110 | <A HREF="../../../../com/rabbitmq/client/Channel.html" title="interface in com.rabbitmq.client"><CODE>Channel</CODE></A>s and <A HREF="../../../../com/rabbitmq/client/Connection.html" title="interface in com.rabbitmq.client"><CODE>Connection</CODE></A>s have shutdown listeners. |
---|
| 111 | <P> |
---|
| 112 | |
---|
| 113 | <P> |
---|
| 114 | <HR> |
---|
| 115 | |
---|
| 116 | <P> |
---|
| 117 | |
---|
| 118 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
| 119 | |
---|
| 120 | <A NAME="constructor_summary"><!-- --></A> |
---|
| 121 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 122 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 123 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 124 | <B>Constructor Summary</B></FONT></TH> |
---|
| 125 | </TR> |
---|
| 126 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 127 | <TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/ShutdownNotifierComponent.html#ShutdownNotifierComponent()">ShutdownNotifierComponent</A></B>()</CODE> |
---|
| 128 | |
---|
| 129 | <BR> |
---|
| 130 | </TD> |
---|
| 131 | </TR> |
---|
| 132 | </TABLE> |
---|
| 133 | |
---|
| 134 | <!-- ========== METHOD SUMMARY =========== --> |
---|
| 135 | |
---|
| 136 | <A NAME="method_summary"><!-- --></A> |
---|
| 137 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 138 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 139 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 140 | <B>Method Summary</B></FONT></TH> |
---|
| 141 | </TR> |
---|
| 142 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 143 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 144 | <CODE> void</CODE></FONT></TD> |
---|
| 145 | <TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/ShutdownNotifierComponent.html#addShutdownListener(com.rabbitmq.client.ShutdownListener)">addShutdownListener</A></B>(<A HREF="../../../../com/rabbitmq/client/ShutdownListener.html" title="interface in com.rabbitmq.client">ShutdownListener</A> listener)</CODE> |
---|
| 146 | |
---|
| 147 | <BR> |
---|
| 148 | Add shutdown listener.</TD> |
---|
| 149 | </TR> |
---|
| 150 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 151 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 152 | <CODE> <A HREF="../../../../com/rabbitmq/client/ShutdownSignalException.html" title="class in com.rabbitmq.client">ShutdownSignalException</A></CODE></FONT></TD> |
---|
| 153 | <TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/ShutdownNotifierComponent.html#getCloseReason()">getCloseReason</A></B>()</CODE> |
---|
| 154 | |
---|
| 155 | <BR> |
---|
| 156 | Get the shutdown reason object</TD> |
---|
| 157 | </TR> |
---|
| 158 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 159 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 160 | <CODE> boolean</CODE></FONT></TD> |
---|
| 161 | <TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/ShutdownNotifierComponent.html#isOpen()">isOpen</A></B>()</CODE> |
---|
| 162 | |
---|
| 163 | <BR> |
---|
| 164 | Determine whether the component is currently open.</TD> |
---|
| 165 | </TR> |
---|
| 166 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 167 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 168 | <CODE> void</CODE></FONT></TD> |
---|
| 169 | <TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/ShutdownNotifierComponent.html#notifyListeners()">notifyListeners</A></B>()</CODE> |
---|
| 170 | |
---|
| 171 | <BR> |
---|
| 172 | Protected API - notify the listeners attached to the component</TD> |
---|
| 173 | </TR> |
---|
| 174 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 175 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 176 | <CODE> void</CODE></FONT></TD> |
---|
| 177 | <TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/ShutdownNotifierComponent.html#removeShutdownListener(com.rabbitmq.client.ShutdownListener)">removeShutdownListener</A></B>(<A HREF="../../../../com/rabbitmq/client/ShutdownListener.html" title="interface in com.rabbitmq.client">ShutdownListener</A> listener)</CODE> |
---|
| 178 | |
---|
| 179 | <BR> |
---|
| 180 | Remove shutdown listener for the component.</TD> |
---|
| 181 | </TR> |
---|
| 182 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 183 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 184 | <CODE> boolean</CODE></FONT></TD> |
---|
| 185 | <TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/ShutdownNotifierComponent.html#setShutdownCauseIfOpen(com.rabbitmq.client.ShutdownSignalException)">setShutdownCauseIfOpen</A></B>(<A HREF="../../../../com/rabbitmq/client/ShutdownSignalException.html" title="class in com.rabbitmq.client">ShutdownSignalException</A> sse)</CODE> |
---|
| 186 | |
---|
| 187 | <BR> |
---|
| 188 | Internal: this is the means of registering shutdown.</TD> |
---|
| 189 | </TR> |
---|
| 190 | </TABLE> |
---|
| 191 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
| 192 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 193 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 194 | <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> |
---|
| 195 | </TR> |
---|
| 196 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 197 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> |
---|
| 198 | </TR> |
---|
| 199 | </TABLE> |
---|
| 200 | |
---|
| 201 | <P> |
---|
| 202 | |
---|
| 203 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
| 204 | |
---|
| 205 | <A NAME="constructor_detail"><!-- --></A> |
---|
| 206 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 207 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 208 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 209 | <B>Constructor Detail</B></FONT></TH> |
---|
| 210 | </TR> |
---|
| 211 | </TABLE> |
---|
| 212 | |
---|
| 213 | <A NAME="ShutdownNotifierComponent()"><!-- --></A><H3> |
---|
| 214 | ShutdownNotifierComponent</H3> |
---|
| 215 | <PRE> |
---|
| 216 | public <B>ShutdownNotifierComponent</B>()</PRE> |
---|
| 217 | <DL> |
---|
| 218 | </DL> |
---|
| 219 | |
---|
| 220 | <!-- ============ METHOD DETAIL ========== --> |
---|
| 221 | |
---|
| 222 | <A NAME="method_detail"><!-- --></A> |
---|
| 223 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 224 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 225 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 226 | <B>Method Detail</B></FONT></TH> |
---|
| 227 | </TR> |
---|
| 228 | </TABLE> |
---|
| 229 | |
---|
| 230 | <A NAME="addShutdownListener(com.rabbitmq.client.ShutdownListener)"><!-- --></A><H3> |
---|
| 231 | addShutdownListener</H3> |
---|
| 232 | <PRE> |
---|
| 233 | public void <B>addShutdownListener</B>(<A HREF="../../../../com/rabbitmq/client/ShutdownListener.html" title="interface in com.rabbitmq.client">ShutdownListener</A> listener)</PRE> |
---|
| 234 | <DL> |
---|
| 235 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../com/rabbitmq/client/ShutdownNotifier.html#addShutdownListener(com.rabbitmq.client.ShutdownListener)">ShutdownNotifier</A></CODE></B></DD> |
---|
| 236 | <DD>Add shutdown listener. |
---|
| 237 | If the component is already closed, handler is fired immediately |
---|
| 238 | <P> |
---|
| 239 | <DD><DL> |
---|
| 240 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/rabbitmq/client/ShutdownNotifier.html#addShutdownListener(com.rabbitmq.client.ShutdownListener)">addShutdownListener</A></CODE> in interface <CODE><A HREF="../../../../com/rabbitmq/client/ShutdownNotifier.html" title="interface in com.rabbitmq.client">ShutdownNotifier</A></CODE></DL> |
---|
| 241 | </DD> |
---|
| 242 | <DD><DL> |
---|
| 243 | <DT><B>Parameters:</B><DD><CODE>listener</CODE> - <A HREF="../../../../com/rabbitmq/client/ShutdownListener.html" title="interface in com.rabbitmq.client"><CODE>ShutdownListener</CODE></A> to the component</DL> |
---|
| 244 | </DD> |
---|
| 245 | </DL> |
---|
| 246 | <HR> |
---|
| 247 | |
---|
| 248 | <A NAME="getCloseReason()"><!-- --></A><H3> |
---|
| 249 | getCloseReason</H3> |
---|
| 250 | <PRE> |
---|
| 251 | public <A HREF="../../../../com/rabbitmq/client/ShutdownSignalException.html" title="class in com.rabbitmq.client">ShutdownSignalException</A> <B>getCloseReason</B>()</PRE> |
---|
| 252 | <DL> |
---|
| 253 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../com/rabbitmq/client/ShutdownNotifier.html#getCloseReason()">ShutdownNotifier</A></CODE></B></DD> |
---|
| 254 | <DD>Get the shutdown reason object |
---|
| 255 | <P> |
---|
| 256 | <DD><DL> |
---|
| 257 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/rabbitmq/client/ShutdownNotifier.html#getCloseReason()">getCloseReason</A></CODE> in interface <CODE><A HREF="../../../../com/rabbitmq/client/ShutdownNotifier.html" title="interface in com.rabbitmq.client">ShutdownNotifier</A></CODE></DL> |
---|
| 258 | </DD> |
---|
| 259 | <DD><DL> |
---|
| 260 | |
---|
| 261 | <DT><B>Returns:</B><DD>ShutdownSignalException if component is closed, null otherwise</DL> |
---|
| 262 | </DD> |
---|
| 263 | </DL> |
---|
| 264 | <HR> |
---|
| 265 | |
---|
| 266 | <A NAME="notifyListeners()"><!-- --></A><H3> |
---|
| 267 | notifyListeners</H3> |
---|
| 268 | <PRE> |
---|
| 269 | public void <B>notifyListeners</B>()</PRE> |
---|
| 270 | <DL> |
---|
| 271 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../com/rabbitmq/client/ShutdownNotifier.html#notifyListeners()">ShutdownNotifier</A></CODE></B></DD> |
---|
| 272 | <DD>Protected API - notify the listeners attached to the component |
---|
| 273 | <P> |
---|
| 274 | <DD><DL> |
---|
| 275 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/rabbitmq/client/ShutdownNotifier.html#notifyListeners()">notifyListeners</A></CODE> in interface <CODE><A HREF="../../../../com/rabbitmq/client/ShutdownNotifier.html" title="interface in com.rabbitmq.client">ShutdownNotifier</A></CODE></DL> |
---|
| 276 | </DD> |
---|
| 277 | <DD><DL> |
---|
| 278 | <DT><B>See Also:</B><DD><A HREF="../../../../com/rabbitmq/client/ShutdownListener.html" title="interface in com.rabbitmq.client"><CODE>ShutdownListener</CODE></A></DL> |
---|
| 279 | </DD> |
---|
| 280 | </DL> |
---|
| 281 | <HR> |
---|
| 282 | |
---|
| 283 | <A NAME="removeShutdownListener(com.rabbitmq.client.ShutdownListener)"><!-- --></A><H3> |
---|
| 284 | removeShutdownListener</H3> |
---|
| 285 | <PRE> |
---|
| 286 | public void <B>removeShutdownListener</B>(<A HREF="../../../../com/rabbitmq/client/ShutdownListener.html" title="interface in com.rabbitmq.client">ShutdownListener</A> listener)</PRE> |
---|
| 287 | <DL> |
---|
| 288 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../com/rabbitmq/client/ShutdownNotifier.html#removeShutdownListener(com.rabbitmq.client.ShutdownListener)">ShutdownNotifier</A></CODE></B></DD> |
---|
| 289 | <DD>Remove shutdown listener for the component. |
---|
| 290 | <P> |
---|
| 291 | <DD><DL> |
---|
| 292 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/rabbitmq/client/ShutdownNotifier.html#removeShutdownListener(com.rabbitmq.client.ShutdownListener)">removeShutdownListener</A></CODE> in interface <CODE><A HREF="../../../../com/rabbitmq/client/ShutdownNotifier.html" title="interface in com.rabbitmq.client">ShutdownNotifier</A></CODE></DL> |
---|
| 293 | </DD> |
---|
| 294 | <DD><DL> |
---|
| 295 | <DT><B>Parameters:</B><DD><CODE>listener</CODE> - <A HREF="../../../../com/rabbitmq/client/ShutdownListener.html" title="interface in com.rabbitmq.client"><CODE>ShutdownListener</CODE></A> to be removed</DL> |
---|
| 296 | </DD> |
---|
| 297 | </DL> |
---|
| 298 | <HR> |
---|
| 299 | |
---|
| 300 | <A NAME="isOpen()"><!-- --></A><H3> |
---|
| 301 | isOpen</H3> |
---|
| 302 | <PRE> |
---|
| 303 | public boolean <B>isOpen</B>()</PRE> |
---|
| 304 | <DL> |
---|
| 305 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../com/rabbitmq/client/ShutdownNotifier.html#isOpen()">ShutdownNotifier</A></CODE></B></DD> |
---|
| 306 | <DD>Determine whether the component is currently open. |
---|
| 307 | Will return false if we are currently closing. |
---|
| 308 | Checking this method should be only for information, |
---|
| 309 | because of the race conditions - state can change after the call. |
---|
| 310 | Instead just execute and try to catch ShutdownSignalException |
---|
| 311 | and IOException |
---|
| 312 | <P> |
---|
| 313 | <DD><DL> |
---|
| 314 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/rabbitmq/client/ShutdownNotifier.html#isOpen()">isOpen</A></CODE> in interface <CODE><A HREF="../../../../com/rabbitmq/client/ShutdownNotifier.html" title="interface in com.rabbitmq.client">ShutdownNotifier</A></CODE></DL> |
---|
| 315 | </DD> |
---|
| 316 | <DD><DL> |
---|
| 317 | |
---|
| 318 | <DT><B>Returns:</B><DD>true when component is open, false otherwise</DL> |
---|
| 319 | </DD> |
---|
| 320 | </DL> |
---|
| 321 | <HR> |
---|
| 322 | |
---|
| 323 | <A NAME="setShutdownCauseIfOpen(com.rabbitmq.client.ShutdownSignalException)"><!-- --></A><H3> |
---|
| 324 | setShutdownCauseIfOpen</H3> |
---|
| 325 | <PRE> |
---|
| 326 | public boolean <B>setShutdownCauseIfOpen</B>(<A HREF="../../../../com/rabbitmq/client/ShutdownSignalException.html" title="class in com.rabbitmq.client">ShutdownSignalException</A> sse)</PRE> |
---|
| 327 | <DL> |
---|
| 328 | <DD>Internal: this is the means of registering shutdown. |
---|
| 329 | <P> |
---|
| 330 | <DD><DL> |
---|
| 331 | </DL> |
---|
| 332 | </DD> |
---|
| 333 | <DD><DL> |
---|
| 334 | <DT><B>Parameters:</B><DD><CODE>sse</CODE> - the reason for the shutdown |
---|
| 335 | <DT><B>Returns:</B><DD><code>true</code> if the component is open; <code>false</code> otherwise.</DL> |
---|
| 336 | </DD> |
---|
| 337 | </DL> |
---|
| 338 | <!-- ========= END OF CLASS DATA ========= --> |
---|
| 339 | <HR> |
---|
| 340 | |
---|
| 341 | |
---|
| 342 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 343 | <A NAME="navbar_bottom"><!-- --></A> |
---|
| 344 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
| 345 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 346 | <TR> |
---|
| 347 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 348 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
| 349 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 350 | <TR ALIGN="center" VALIGN="top"> |
---|
| 351 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 352 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 353 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 354 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 355 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 356 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 357 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 358 | </TR> |
---|
| 359 | </TABLE> |
---|
| 360 | </TD> |
---|
| 361 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 362 | </EM> |
---|
| 363 | </TD> |
---|
| 364 | </TR> |
---|
| 365 | |
---|
| 366 | <TR> |
---|
| 367 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 368 | <A HREF="../../../../com/rabbitmq/client/impl/SetQueue.html" title="class in com.rabbitmq.client.impl"><B>PREV CLASS</B></A> |
---|
| 369 | <A HREF="../../../../com/rabbitmq/client/impl/SocketFrameHandler.html" title="class in com.rabbitmq.client.impl"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 370 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 371 | <A HREF="../../../../index.html?com/rabbitmq/client/impl/ShutdownNotifierComponent.html" target="_top"><B>FRAMES</B></A> |
---|
| 372 | <A HREF="ShutdownNotifierComponent.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 373 | <SCRIPT type="text/javascript"> |
---|
| 374 | <!-- |
---|
| 375 | if(window==top) { |
---|
| 376 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 377 | } |
---|
| 378 | //--> |
---|
| 379 | </SCRIPT> |
---|
| 380 | <NOSCRIPT> |
---|
| 381 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 382 | </NOSCRIPT> |
---|
| 383 | |
---|
| 384 | |
---|
| 385 | </FONT></TD> |
---|
| 386 | </TR> |
---|
| 387 | <TR> |
---|
| 388 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 389 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 390 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 391 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 392 | </TR> |
---|
| 393 | </TABLE> |
---|
| 394 | <A NAME="skip-navbar_bottom"></A> |
---|
| 395 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 396 | |
---|
| 397 | <HR> |
---|
| 398 | |
---|
| 399 | </BODY> |
---|
| 400 | </HTML> |
---|