| | |
| | | * need to implement any replication. |
| | | * |
| | | * @return The ReplicationMsg that was received. |
| | | * @throws IOException When error happened during IO process. |
| | | * @throws IOException When error happened during IO process, a |
| | | * {@link PacketTooLargeException} when this server runs out of heap |
| | | * for the frame received. |
| | | * @throws DataFormatException When the data received is not formatted as a |
| | | * ReplicationMsg. |
| | | * @throws NotSupportedOldVersionPDUException If the received PDU is part of |
| | |
| | | } |
| | | catch (final OutOfMemoryError e) |
| | | { |
| | | throw new IOException("Packet too large, can't allocate " |
| | | + totalLength + " bytes."); |
| | | throw new PacketTooLargeException(totalLength); |
| | | } |
| | | } |
| | | catch (final IOException | DataFormatException | NotSupportedOldVersionPDUException | RuntimeException e) |