Package org.jboss.modcluster.advertise
Interface AdvertiseListener
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
AdvertiseListenerImpl
public interface AdvertiseListener extends AutoCloseable
- Author:
- Paul Ferraro, Radoslav Husar
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Replaces previous pause/stop/destroy lifecycle methods, terminating the advertise worker and closing the datagram channel; may throwIOException.booleanisListening()Returnstrueif listener is accepting the advertise messages; false if the listener was stopped or is experiencing network problems.
-
-
-
Method Detail
-
isListening
boolean isListening()
Returnstrueif listener is accepting the advertise messages; false if the listener was stopped or is experiencing network problems.
-
close
void close() throws IOExceptionReplaces previous pause/stop/destroy lifecycle methods, terminating the advertise worker and closing the datagram channel; may throwIOException.- Specified by:
closein interfaceAutoCloseable- Throws:
IOException- If an I/O error occurs while closing the underlying channel.
-
-