use of jp.ossc.nimbus.service.publish.tcp.StopReceiveMessage in project nimbus by nimbus-org.
the class ClientConnectionImpl method stopReceive.
public void stopReceive() throws MessageSendException {
if (socket == null) {
throw new MessageSendException("Not connected.");
}
if (!isStartReceive) {
return;
}
try {
send(new StopReceiveMessage(), isAcknowledge);
isStartReceive = false;
} catch (SocketTimeoutException e) {
throw new MessageSendException(e);
} catch (SocketException e) {
throw new MessageSendException(e);
} catch (IOException e) {
throw new MessageSendException(e);
} catch (ClassNotFoundException e) {
throw new MessageSendException(e);
}
}
Aggregations