public interface ServerImplementation
Modifier and Type | Method and Description |
---|---|
void |
closeConversation(boolean commit)
Method called by the RPC Server when a conversation RPC ends.
The paramter indicates that the RPC client has closed the conversation with the option commit. |
void |
finish()
Called on termination of a worker thread.
|
void |
init()
Called on start by the Java RPC server.
|
void |
shutdown()
Called on shutdown by the Java RPC server.
|
void closeConversation(boolean commit)
commit
- true
if closeConversationCommit has been called
by RPC client, false
otherwisevoid init() throws java.lang.Exception
System.out
. In this case the server does not start.java.lang.Exception
- if the method fails.void shutdown() throws java.lang.Exception
init()
and calls this method on shutdown. If this method
throws an exception, the stack trace is written to the log file or to
System.out
. In this case the shutdown proceeds.init
starts any threads, shutdown
must stop
these threads. Otherwise, the Java RPC server will not terminate.java.lang.Exception
- if the method fails.void finish() throws java.lang.Exception
System.out
. This
method is called once for each worker thread and each server class of
this worker thread.java.lang.Exception
- if the method fails.