Package org.jgroups
Interface Lifecycle
-
- All Known Implementing Classes:
ASYM_ENCRYPT,ASYNC,AsyncExecutor,AUTH,BARRIER,BasicTCP,BATCH,BATCH2,BPING,CLEAR_FLAGS,COMPRESS,COUNTER,DAISYCHAIN,DELAY,DETECT_LOOPBACKS,DH_KEY_EXCHANGE,DISCARD,DISCARD_PAYLOAD,Discovery,DNS_PING,DROP,DUPL,Encrypt,EXAMPLE,FailureDetection,FD_ALL,FD_ALL2,FD_ALL3,FD_HOST,FD_SOCK,FD_SOCK2,FILE_PING,FlowControl,FORK,ForkProtocol,ForkProtocolStack,FRAG,FRAG2,FRAG3,FRAG4,Fragmentation,GMS,HDRS,INJECT_VIEW,JDBC_PING,JDBC_PING2,KeyExchange,LOCAL_PING,MAKE_BATCH,MERGE3,MessageDispatcher.ProtocolAdapter,MFC,MFC_NB,MockTransport,MPING,NAKACK2,NAKACK3,NAKACK4,NON_BLOCKING_SENDS,PDC,PERF,PING,Protocol,ProtocolStack,RACKSPACE_PING,RATE,RATE_LIMITER,RATE_LIMITER2,RED,RELAY,RELAY2,RELAY3,ReliableMulticast,ReliableUnicast,REVERSE,REVERSE2,RSVP,SEQUENCER,SEQUENCER2,SERIALIZE,SHARED_LOOPBACK,SHARED_LOOPBACK_PING,SHUFFLE,SimpleTCP,SIZE,SIZE2,SNIFF,SOS,SSL_KEY_EXCHANGE,STABLE,STATE,STATE_SOCK,STATE_TRANSFER,STATS,STOMP,StreamingStateTransfer,SWIFT_PING,SYM_ENCRYPT,TCP,TCP_NIO2,TCPGOSSIP,TCPPING,THREAD_COUNT,ThreadPool,TIME,TLS,TP,TRACE,TUNNEL,UDP,UFC,UFC_NB,UNBATCH,UNBATCH_OOB,UNICAST3,UNICAST4,VERIFY_SUSPECT,VERIFY_SUSPECT2
public interface LifecycleInterface that defines lifecycle methods. Used by protocols and components- Since:
- 5.2
- Author:
- Bela Ban
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voiddestroy()Called after an instance has been stopped.default voidinit()Called after an instance has been created and before it is started.default voidstart()This method is called after an instance has been initialized.default voidstop()Called before an instance is stopped; stops work.
-
-
-
Method Detail
-
init
default void init() throws java.lang.ExceptionCalled after an instance has been created and before it is started.- Throws:
java.lang.Exception- Thrown if the instance cannot be initialized successfully.
-
start
default void start() throws java.lang.ExceptionThis method is called after an instance has been initialized. Starts work.- Throws:
java.lang.Exception- Thrown if the instance cannot be started successfully.
-
stop
default void stop()
Called before an instance is stopped; stops work.
-
destroy
default void destroy()
Called after an instance has been stopped. Cleans up resources
-
-