public class CloseSocket extends AbstractSocket
socket| Constructor and Description |
|---|
CloseSocket(Socket socket)
Creates a close socket action.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onEnd(boolean endWithSuccess)
Called when the execution of the action is finished.
|
void |
onStart()
Called when the execution of the action is about to start.
|
getSocketpublic CloseSocket(Socket socket)
socket - the socket to be closedpublic void onEnd(boolean endWithSuccess)
endWithSuccess - true if the execution of the action was ended with success; false otherwise.public void onStart()
throws SecurityException
SecurityException - if the action is not allowed to be performed.