public interface Service
TransportProtocol
.Modifier and Type | Method and Description |
---|---|
int |
getIdleTimeoutSeconds()
How long does the service allow idle for?
|
String |
getName()
The service name
|
boolean |
processMessage(byte[] msg)
Process a transport message.
|
void |
start()
Start the service.
|
void |
stop()
Stop the service
|
boolean processMessage(byte[] msg) throws IOException
TransportProtocol
that is not a transport level message the
message is passed onto the active service using this method. The service
processes the message and returns a value to indicate whether the message
was used.msg
- IOException
void start()
void stop()
int getIdleTimeoutSeconds()
String getName()
Copyright © 2016. All rights reserved.