public interface Destination
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the Destination and frees up all its resources.
|
void |
connect()
Connects the
Destination to the underlying endpoint. |
void |
start()
Starts the destination, so that it can receive data from the endpoint.
|
void connect()
Destination
to the underlying endpoint.
Only valid on an initialized Destination
. After this call,
you will be able to start
or close
the
Destination
.
Do not start sending or receiving data data here.
java.lang.Exception
- when the Destination could not be connected to the underlying
endpoint.Destination.start()
,
Destination.close()
void start()
Only valid on a connected Destination
After this call, you
will be able to stop
and close
the
Destination
.
java.lang.Exception
- when the Destination could not be started.Destination.connect()
,
Destination.close()
void close()
After this call, you will be able to init
the
Destination
.
java.lang.Exception
- encountered exception