public interface ConnectivityPlugin
AbstractCodec
,
AbstractTransport
Modifier and Type | Method and Description |
---|---|
void |
hostReady()
Called some time after
start() , when the host is ready to start receiving events. |
void |
shutdown()
Release any resources created by the connectivity plug-in, and terminate and join any background threads.
|
void |
start()
Called when an entire chain has been created.
|
void start() throws java.lang.Exception
java.lang.Exception
- only if a fatal error occurred during startup.void shutdown() throws java.lang.Exception
The host will call this before shutdown.
This method will never be called more than once on this instance. Implementations should ensure they work correctly even if the start() method was not called.
If the plug-in is blocked waiting to send a message it should attempt to cancel the operation when this method is called, and if possible should avoid returning from this method until all outstanding operations and threads have completed.
java.lang.Exception
void hostReady() throws java.lang.Exception
start()
, when the host is ready to start receiving events.
The host will not process events from the transport until
this occurs. This is advisory: the plug-in is permitted to
send events before this is called, but may opt to queue the
events until it is ready to process events. Transports may
choose to not receive events from a third party until the
host is ready for them.java.lang.Exception
Submit a bug or feature
Copyright (c) 2013-2016 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.