public interface Service
TransportProtocol.| Modifier and Type | Method and Description |
|---|---|
int |
getIdleTimeoutSeconds()
How long does the service allow idle for?
|
java.lang.String |
getName()
The service name
|
boolean |
idle()
The service has reached idle timeout seconds
|
boolean |
processMessage(byte[] msg)
Process a transport message.
|
void |
start()
Start the service.
|
void |
stop()
Stop the service
|
boolean processMessage(byte[] msg)
throws java.io.IOException,
SshException
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 - java.io.IOExceptionSshExceptionvoid start()
throws SshException
SshExceptionvoid stop()
int getIdleTimeoutSeconds()
java.lang.String getName()
boolean idle()
Copyright © 2021. All rights reserved.